Personally, I'd just edit messegesgui and replace showMessage with your code: https://github.com/espruino/BangleApps/blob/master/apps/messagegui/app.js#L248-L349
messegesgui
showMessage
But you can I believe just write code like:
Bangle.on("message", (type, msg) => { if (!msg) return; msg.handled = true; // don't do anything else with the message ... do stuff });
Maybe others that have actually done this can jump in though?
@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.
Personally, I'd just edit
messegesgui
and replaceshowMessage
with your code: https://github.com/espruino/BangleApps/blob/master/apps/messagegui/app.js#L248-L349But you can I believe just write code like:
Maybe others that have actually done this can jump in though?