shownearby: 0.02: Ensure we reset advertising after exiting so the watch can be connected to!

master
Gordon Williams 2022-07-27 10:17:12 +01:00
parent 91728c147f
commit 489582ee91
3 changed files with 8 additions and 2 deletions

View File

@ -1 +1,2 @@
0.01: New App!
0.02: Ensure we reset advertising after exiting so the watch can be connected to!

View File

@ -86,3 +86,8 @@ NRF.setScan(function(d) {
},{phy:"coded",filters: [{ manufacturerData:{0x0590:{}} }]});
// Set transmit power to max
NRF.setTxPower(8);
// when leaving the app, reset the advertising to default so we can reconnect!
Bangle.on('kill', function() {
NRF.setAdvertising({},{});
});

View File

@ -1,8 +1,8 @@
{
"id": "shownearby",
"name": "Show Nearby",
"version": "0.01",
"description": "Uses BLE long range advertising, advertises current location and shows the position of other watches running the app (Needs firmware 2v14.63 or later and Open Street Map installed)",
"version": "0.02",
"description": "Uses BLE long range advertising, advertises current location and shows the position of other watches running the app (Needs firmware 2v14.63 or later and Open Street Map installed). Make sure you disconnect from your phone first!",
"icon": "app.png",
"tags": "outdoors,gps",
"supports": ["BANGLEJS2"],