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:
str
"fffc": function (d) { var s = ""; for (var i = 0; i < d.length; i++) s += String.fromCharCode(d[i]); return {str: s}; } },
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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: