Espruino Hub on Raspberry SSL issue #6693
Replies: 1 comment
-
Posted at 2023-02-22 by @gfwilliams Hi - you shouldn't need this if EspruinoHub is working correctly. If you just want to use Web Bluetooth use espruino.com/ide What happens is EspruinoHub serves up a page which creates a WebSocket connection back to EspruinoHub. Then EspruinoHub handles the bluetooth connection (which it doesn't need SSL for) Posted at 2023-02-22 by user153457 Yes but that was my point, you should mention that in the manual that without SSL is not going to allow. Posted at 2023-02-22 by @gfwilliams I'm not sure where in the manual you mean but if you want to do a PR for the extra docs I'll happily merge. I'm still not sure why you'd want to use Web Bluetooth when the whole point of using EspruinoHub is to use the bluetooth that it provides though? Posted at 2023-02-22 by user153457 I think we are missing each other, yes exactly I want to use the EspruinoHub installed on my Raspberry so that I can connect remotely from my laptop (which is far away from the BLE sensors) to the ide and then program the sensors via the WebBluetooth option. I seem to recall that not having SSL enabled on webpages doesn't allow the WebBluetooth dialog to be available? Posted at 2023-02-23 by @gfwilliams Ahh, I think I see what you're getting at. "Web Bluetooth" is the thing that allows the Web Browser to use your PC's Bluetooth connection. And yes, you need HTTPS for that. But that's not what we're using to allow you to access Bluetooth sensors from far away. Instead, EspruinoHub uses a WebSocket connection from the page that hosts the IDE back to EspruinoHub, and the bluetooth connection goes through that. Web Bluetooth is not needed. Maybe you could check If they have, when you open the You could always check the Chrome Debug console to see if anything looks amiss Attachments: Posted at 2023-02-23 by user153457 It seems to have crashed today let me investigate... Posted at 2023-02-23 by user153457 It seems to be happened at midnight.
Posted at 2023-02-23 by user153457 It seems to be constantly failing even when restarting this is weird ... Posted at 2023-02-23 by @gfwilliams I know EspruinoHub does attempt to restart if it can't detect any Bluetooth LE devices in range because it thinks something might be broken - could that be it? Posted at 2023-02-23 by user153457 There are like 20 devices in range, I can't really understand what is the problem. Posted at 2023-03-03 by user153457 I have wrote my own docker compose file now which works quite well, but one question about the config.json:
if I have an open MQTT broker, do I just omit the username and password fields? Posted at 2023-03-05 by user153457 I seem to have solved my problems, here's the docker file:
I need to find the folder where to store the Espruino web pages. Posted at 2023-03-06 by @gfwilliams Great, glad it's working for you! I think you can just leave |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-02-17 by user153457
Hi there,
I noticed that the Espruino Hub software is installed without SSL certificate.
Thus it is unable to connect via Bluetooth.
Any instructions available to add https?
Cheers.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions