Interesting discovery controlling my Thermostat project. #1308
Replies: 9 comments
-
Posted at 2019-04-08 by @gfwilliams :) 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by TomWS Thanks for the tips. I'll check them out. As you say
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by TomWS I tried to use passkey in a simple case:
I expected to get a prompt from the IDE when I tried to reconnect, but it reconnected without issue. I did notice this comment:
I'm currently using 2v01.56 and I don't see any builds that are greater than 2v01. What am I missing? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by @gfwilliams
Current cutting edge builds are the right ones. A release will be 2v01 for instance, and then cutting edge builds before 2v02 will be 2v01.xyz. It might be that you still need a newer cutting edge build though - on older builds it'll just be ignored. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by TomWS Ok, thanks. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by @gfwilliams Yes, that code looks spot on. I forgot to add that perhaps if your PC has already paired with the device, that pairing could be stored in memory and so it may not ask you for a passcode. You could try connecting with another device? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by TomWS Thanks. Looks like I'll update my build later today.
Good point, I'll keep that in mind. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-08 by TomWS FYI, using 2v01.102 and the code in #4 I was able to connect with 4 different devices without a passcode and I'm pretty sure that one of the devices (old Samsung Note 3) had never connected to this Espruino board before. I'm going to let this pass for a while as I have other things to pursue at the moment. This was just a head's up. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-09 by @gfwilliams Thanks - that's a strange one. I'll have to have a play. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-04-07 by TomWS
You all may be used to this, but it took me completely by surprise.
As I was progressing on my Thermostat project (currently updating the e-paper display from essentially hard coded data), I began to explore how my home server would send commands and data updates to my device. In this, I found the node.js BLE examples and then suddenly realized that I didn't need to create an 'API' - the fact that the Espruino code essentially runs as an open console interface means that if I want to update any data, I can simply send a javascript command to assign a value to it!
Need to update the forecast? Just send this over the 0x0002 characteristic :
Now I do have to admit this is a HUGE security exposure, but it sure is easy!
Beta Was this translation helpful? Give feedback.
All reactions