• Odd about the repeated connects and disconnect - was the Puck nearby, or could it have had bad signal?

    I'll wait until it's a bit more stable before adding it to the bookmarks. It's trivial to add /relay to the end of the IDE URL and add it as a new bookmark though.

    It doesn't look you can increase the font size on the relay key - I found it a bit hard to read

    Hopefully I've just fixed that.

    There is no indication on the PC ide that the other end has disconnected?

    Good point - I thought it did, but looking at the code it doesn't.

    Would it be possible to re-connect silently and retain the key

    Reconnecting silently might be tricky with Web Bluetooth (as I guess it's entirely likely it would need user input?). The key should be retained - it is on Android I believe (it's stored in a cookie) but I wonder if WebBLE doesn't preserve cookies?

    So there seems to be no indication that the expired key or wrong key is used?

    Yes, I wasn't sure about that - I don't want people to be able to brute-force it to find other people's keys so for the moment I'm just leaving it with no response.

    If anyone does want to hack around on this, the code itself is here:

    relay: https://github.com/espruino/EspruinoWebI­DE/blob/gh-pages/relay/relay.js
    ide comms: https://github.com/espruino/EspruinoTool­s/blob/c57e60e94b6b324cbf1bd495f2365880a­805f2c3/core/serial_websocket.js

    It's not too difficult.

About

Avatar for Gordon @Gordon started