From 6210f11149b6623b25946934ae8e5704db8ea232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Fri, 4 Aug 2023 23:13:31 +0100 Subject: [PATCH] android: Send fw and hw on connection --- apps/android/ChangeLog | 3 ++- apps/android/boot.js | 1 + apps/android/metadata.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/android/ChangeLog b/apps/android/ChangeLog index d966c14405..8362dd3a90 100644 --- a/apps/android/ChangeLog +++ b/apps/android/ChangeLog @@ -27,4 +27,5 @@ 0.26: Change handling of GPS status to depend on GPS events instead of connection events 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.29: Support for http request xpath return format \ No newline at end of file +0.29: Support for http request xpath return format +0.30: Send firmware and hardware versions on connection diff --git a/apps/android/boot.js b/apps/android/boot.js index 7988c378fc..a47edb5001 100644 --- a/apps/android/boot.js +++ b/apps/android/boot.js @@ -253,6 +253,7 @@ Bangle.on("charging", sendBattery); NRF.on("connect", () => setTimeout(function() { 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 }, 2000)); NRF.on("disconnect", () => { diff --git a/apps/android/metadata.json b/apps/android/metadata.json index 8489570f71..e875c20724 100644 --- a/apps/android/metadata.json +++ b/apps/android/metadata.json @@ -2,7 +2,7 @@ "id": "android", "name": "Android Integration", "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.", "icon": "app.png", "tags": "tool,system,messages,notifications,gadgetbridge",