You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Ok, all you do is:

    • Write a function on Puck.js, maybe function myFunction() { ... }
    • Then send an MQTT packet like "myFunction()\n" to /ble/write/de:vi:ce:ad:dr/nus/nus_tx

    If you're interested in what is sent as a reply and don't want Espruino polluting the response with characters like > for the REPL, just prefix the line with char code 16:

    "\x10myFunction()\n"

About

Avatar for Gordon @Gordon started