(If response is a string -> send it as REPLY. I also added return (ACCEPT/REJECT/OPEN/DISMISS/REPLY, so that whatever triggers Bangle.messageResponse() gets feedback if the response was understood)
When I respond "OK", I am getting this in my gadgetbridge.log:
...
09:45:09.002 [Binder:4929_1] INFO n.f.g.s.d.b.BangleJSDeviceSupport - UART RX LINE: {"t":"notify","n":"REPLY","msg":"OK","id":1646979166}
09:45:09.002 [Binder:4929_1] INFO n.f.g.s.AbstractDeviceSupport - Got NOTIFICATION CONTROL device event
09:45:09.002 [Binder:4929_1] INFO n.f.g.s.AbstractDeviceSupport - Got notification reply for notification id 1646979166 : OK
looks very promising, but DOES NOT send a reply to the whatsapp contact.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Update: I tried, but failed:
I added some code to the android.boot.js: (No pull request, because it obviously doesn't work)
(If response is a string -> send it as REPLY. I also added return (ACCEPT/REJECT/OPEN/DISMISS/REPLY, so that whatever triggers
Bangle.messageResponse()
gets feedback if the response was understood)When I respond "OK", I am getting this in my gadgetbridge.log:
looks very promising, but DOES NOT send a reply to the whatsapp contact.