You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Wow, the telegram bot thing would be cool. I guess there could be a library for Espruino that allowed you to do prompt("Light on?",{buttons:["yes","no"]}).then(result­ => ... ), and you had some magic that detected what it output and put buttons on the chat dialog?

    My son's still at the 'poke the picture' stage, so the easier the better really :)

    With the IDE, is there a way to link to it and have it connect to a specified device?

    Interestingly no, there isn't! There's already 'upload', and it's smart enough to connect to the emulator:

    https://www.espruino.com/ide/?emulator&u­pload&code=print(%27Hello%27)
    

    But having the ability to specify an actual device would be very cool, and a PR would be great! In getPorts there's already the ability to specify a port that the IDE should automatically connect to, so it might be as easy as modifying getPorts in serial.js to check window.location.query and set the relevant field if the name matches :)

    Also, we currently only have upload, and not a connect option :)

About

Avatar for Gordon @Gordon started