How would I use this example as a way use my bangle2 to advertising it as a beacon? I have tried
(() => { function advertiseBeacon() { NRF.setAdvertising([ require("ble_ibeacon").get({ uuid : [0xb1, 0xae, 0x51, 0x2b, 0x97, 0x03, 0x4a, 0xe2, 0xb9, 0xc3, 0x9e, 0x26, 0x0c, 0xa7, 0xb3, 0x99], rssi : -60 }) ]); } setInterval(advertiseBeacon, 60 * 1000); advertiseBeacon(); })();
but get a "Uncaught Storage Updated" when I try to save it to a file in storage on the watch.
I want to figure out how to use it in this format
Bangle.bleAdvert[0x180F] = [E.getBattery()];
so they all play together Thanks Katherine
@kab 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.
How would I use this example as a way use my bangle2 to advertising it as a beacon?
I have tried
but get a "Uncaught Storage Updated" when I try to save it to a file in storage on the watch.
I want to figure out how to use it in this format
so they all play together
Thanks
Katherine