android: Send fw and hw on connection

master
José Rebelo 2023-08-04 23:13:31 +01:00
parent a25ad46efe
commit 6210f11149
3 changed files with 4 additions and 2 deletions

View File

@ -28,3 +28,4 @@
0.27: Issue newline before GB commands (solves issue with console.log and ignored commands) 0.27: Issue newline before GB commands (solves issue with console.log and ignored commands)
0.28: Navigation messages no longer launch the Maps view unless they're new 0.28: Navigation messages no longer launch the Maps view unless they're new
0.29: Support for http request xpath return format 0.29: Support for http request xpath return format
0.30: Send firmware and hardware versions on connection

View File

@ -253,6 +253,7 @@
Bangle.on("charging", sendBattery); Bangle.on("charging", sendBattery);
NRF.on("connect", () => setTimeout(function() { NRF.on("connect", () => setTimeout(function() {
sendBattery(); sendBattery();
gbSend({t: "ver", fw: process.env.VERSION, hw: process.env.HWVERSION});
GB({t:"force_calendar_sync_start"}); // send a list of our calendar entries to start off the sync process GB({t:"force_calendar_sync_start"}); // send a list of our calendar entries to start off the sync process
}, 2000)); }, 2000));
NRF.on("disconnect", () => { NRF.on("disconnect", () => {

View File

@ -2,7 +2,7 @@
"id": "android", "id": "android",
"name": "Android Integration", "name": "Android Integration",
"shortName": "Android", "shortName": "Android",
"version": "0.29", "version": "0.30",
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.", "description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
"icon": "app.png", "icon": "app.png",
"tags": "tool,system,messages,notifications,gadgetbridge", "tags": "tool,system,messages,notifications,gadgetbridge",