1
0
Fork 0

Change to boot code, instead of widget

master
jonathan 2020-08-17 20:53:11 +01:00
parent 65fa125774
commit ffc057654b
3 changed files with 4 additions and 10 deletions

View File

@ -2133,14 +2133,14 @@
{ "id": "widgattbat",
"name": "BLE GATT Battery Service",
"shortName":"BLE Battery Service",
"icon": "widget.png",
"icon": "bluetooth.png",
"version":"0.01",
"description": "Adds the GATT Battery Service to advertise the percentage of battery currently remaining over Bluetooth.\n",
"tags": "ble,bluetooth,gatt,widget",
"tags": "battery,ble,bluetooth,gatt,widget",
"type": "widget",
"readme": "README.md",
"storage": [
{"name":"gattbat.wid.js","url":"widget.js"}
{"name":"gattbat.boot.js","url":"boot.js"}
]
}
]

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -7,10 +7,4 @@
if (!Bangle.bleAdvert) Bangle.bleAdvert = {};
setInterval(advertiseBattery, 60 * 1000);
advertiseBattery();
WIDGETS["gattbat"]={
area:"tl",
width:0,
draw:function() {}
};
})()
})();