AccelSender app interval 1s instead of 10s when using sleep as android? #7737
-
I was connecting to the bangle.js from https://www.espruino.com/ide/# and loaded the This had the contents I did a test where I set this setting to 10000/disabled, disconnected from my computer, and connected to android, I don't yet know exactly what is sending this, whether it is gadget bridge, or sleep as android itself? cc @AnotherStranger in case they might know |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
As you say it looks like there's no settings page for the app which would let you change that file, or even a mention in the README.
Yes, that's expected. When Espruino writes JSON files using
I just looked in Gadgetbridge and in That command is then interpreted at: https://github.com/espruino/BangleApps/blob/master/apps/android/lib.js#L294-L297 So it's Gadgetbridge that's forcing the update interval |
Beta Was this translation helpful? Give feedback.
-
I see, it's just not what I was expecting given the entry in config.js, looking at the sleep as android docs it isn't really a problem.
So I assume that it just hasn't implemented the aggregating and sending data at different intervals. |
Beta Was this translation helpful? Give feedback.
As you say it looks like there's no settings page for the app which would let you change that file, or even a mention in the README.
Yes, that's expected. When Espruino writes JSON files using
writeJSON
it does so in a slightly compacted format on the Bangle (where possible) just to speed up reading/writing and save a bit of space.I just looked in Gadgetbridge and in
app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java
there'senableAccelSender
which sends a commandaccelsender
and hard-codes an interval of 1000 (it…