EspruinoHub IDE not offering BLE devices #5933
Replies: 1 comment
-
Posted at 2018-05-22 by @gfwilliams And you're sure you're accessing the ide at Do you see any error messages in the Chrome Developer console when Chrome is running the IDE and trying to connect? Posted at 2018-05-22 by IrregularShed Yep, connecting straight to the Pi hosted version on port 1888. The console logs show everything working as you'd expect - lots of I thought for a moment I'd identified something - there was a complaint about parsing JSON from the config - but there was junk in the local storage. Clearing that out got rid of that error but still no luck getting connected. I also connected to the Pi through a Chrome incognito window to make sure that there was nothing else knocking around that could've had an impact (I once had issues with the LastPass extension on another web-based IDE - that caught me out) but there was no difference. Checked mosquitto is running correctly - it is, and NodeRED can publish and subscribe quite happily to it. Everything looks like it should be working, but no dice :( Posted at 2018-05-22 by IrregularShed I took a look at Posted at 2018-05-22 by J{a}SON i have espruino.com/ide working on my rpi 3 b+ in chromium, but have not been able to get a local ide build working either. Posted at 2018-05-22 by @gfwilliams Aha, found it.
Do a full page refresh on the IDE (no need to reboot EspruinoHub) and it should work. EspruinoHub filters by name, and I hadn't added Pixl.js to the list of devices to filter for :s If you'd put a Puck within range I bet it'd have worked. Posted at 2018-05-22 by IrregularShed Brilliant! That's got it. I have a Puck in range but the battery is dead - better drop into Poundland and grab a stack of their cheapy ones! BTW, slight topic change - is there a way to have a classic Espruino board plugged into the Pi and to code from my laptop? Just thinking about the whole Chrome Apps closure debacle; being able to plug into the little box on the shelf would be next best to a direct connection. Posted at 2018-05-22 by @gfwilliams
There is :) Ideally USB support would get added to EspruinoHub at some point and then you could do it all from one place :) Posted at 2018-05-23 by IrregularShed (Going further off topic but I don't want to start something new) I've had a look at the various pieces of code in EspruinoHub and the way it's dealing with the BLE boards. Do you think there would be any mileage in implementing an MQTT conduit between the IDE and a classic board over UART? Posted at 2018-05-23 by @gfwilliams Yes, definitely. At the moment is just does this: https://github.com/espruino/EspruinoHub#node-red--mqtt I guess a hack would be to just make it appear as a BLE device, but with Or perhaps it's worth improving the whole MQTT connection thing to make it more general purpose |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-05-22 by IrregularShed
Hi folks
I've replaced my office Pi 2 with a Pi 3B+, partly so that I can use it and EspruinoHub to deal with my Puck and Pixl devices. I had it working with a Pi Zero W some time back, but that board has been used in a project since then. My problem is this - the backend can see BLE devices, and continues to see the devices (I've got it running in a terminal at the moment) but the WebIDE installed alongside won't acknowledge them and I can't connect to anything. So far I've...
npm install
at every level, hoping that something will spark it up./start.sh
as both standard and root userStill no luck. Any advice?
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions