Espruino 1v93 released #138
Replies: 7 comments
-
Posted at 2017-07-13 by AntiCat Is |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-14 by @gfwilliams It is, but it depends how you use it...
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-17 by ancienthero looks great! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-22 by MobiTech Nice updates. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-22 by @gfwilliams If some other device is connecting to Puck.js, then that device can request bonding and Puck.js will bond - however as far as I know if it up to the connecting device to initiate the bonding. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-21 by DrAzzy Is there ever any reason not to pretokenize? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams If you wanted to be able to |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-07-10 by @gfwilliams
This one's been a while coming, but there are some great new additions:
The biggest one is
E.setFlags({pretokenise:1})
This puts the JS interpreter into a mode where any function that's defined is tokenised as it is stored. All reserved words are squashed down to a single byte, and all whitespace is removed. It seems to give a 10-20% speedup of execution, but crucially it hugely reduces the memory usage.
So if you're having problems with memory usage, type
E.setFlags({pretokenise:1})
on the left-hand side of the IDE, then re-upload and see what happens.There's also:
connection.on('error'...)
BluetoothRemoteGATTServer.startBonding
to initiate bonding with Puck.js as the central device, which can include a secure connectionArray.indexOf
finally getsfromIndex
supportDate
setters and timezone support withE.setTimeZone
. You can now finally get the correct time based on your country's timezone, without having to manually tweak the date.Serial.setup
. Previously framing/parity errors were added to the input queue regardless, and could fill it up quickly in the case of invalid serial data.save()
- and are also dumped to the console usingdump()
NRF.getAdvertisingData
as well as the ability to supply an array of objects toNRF.setAdvertising
to allow for some pretty advanced use of advertisingBluetoothRemoteGATTServer.getSecurityStatus
to allow the security status of a Bluetooth central link to be checkedatob
andbtoa
now use flat strings for their output if possible, so are way more memory efficient than before.Puck.magTemp()
function to get the magnetometer's temperature as well as the BLE module'sE.set/getFlags
to allow interpreter state to be set and queried from one placeThere are a whole bunch of fixes too - check them out here: http://www.espruino.com/ChangeLog
A few of the main ones are:
.
- which could break some parsersBeta Was this translation helpful? Give feedback.
All reactions