You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • If you want to add your own named topics (or strings), you probably need to modify EspruinoHub to add those topics.

    Here, you can see the attributes listed:

    https://github.com/espruino/EspruinoHub/­blob/master/lib/attributes.js#L186

    So just add your own handler. For instance this should produce a string with a str topic for attribute 0xFFFC:

      "fffc": function (d) {
          var s  = "";
          for (var i = 0; i < d.length; i++)
            s += String.fromCharCode(d[i]);
          return {str: s};
        }
      },
    
About

Avatar for Gordon @Gordon started