Controlling Access to Serial Service on NRF #3465
Replies: 4 comments
-
|
Posted at 2020-09-01 by @fanoush you mean the bluetooth console? there are several ways, check http://www.espruino.com/BLE+Security |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-09-01 by noahneibaron @fanoush thanks for the link. Lots of good options there, somehow missed that in the documentation. Will probably go with the changing the connectable option to false after a minute of pressing a button or powering up. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-09-01 by @fanoush Here is snippet of code I use It also vibrates on connection (my custom code) and maintains active connection with rssi value as extra NRF object properties, also on disconnect it keeps the reason. This code is not needed for this simple whitelisting and can be removed. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2020-09-02 by noahneibaron Thanks, this is great! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-09-01 by noahneibaron
I'd like to secure the serial service so that it's only available to connect to within a minute or so of powering on Espruino. The idea is to secure the javascript if someone doesn't have access to power cycling the device or pressing a physical button. Is it possible to disable this service or possibly change the device to non-connectable after a minute of powering on?
Beta Was this translation helpful? Give feedback.
All reactions