Just adding a PIN code would go a long way towards stopping someone messing with it.
But if you want better security while stuff using the BLE UART, you could move the REPL out the way, use Bluetooth.on('data', ...) and then parse the JSON with JSON.parse - so then you know nobody can send random code to you.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
:) yep - that's intentional, it makes it really easy to get stuff going.
There's a bit of info about improving BLE security here: http://www.espruino.com/BLE+Security
Just adding a PIN code would go a long way towards stopping someone messing with it.
But if you want better security while stuff using the BLE UART, you could move the REPL out the way, use
Bluetooth.on('data', ...)
and then parse the JSON withJSON.parse
- so then you know nobody can send random code to you.