You are reading a single comment by @stweedo and its replies. Click here to read the full conversation.
  • The communication mostly works now and I've added some better error handling in my code.

    In gadgetbridge it shows an error whenever I read from or write to the bangle. Chrome doesn't show any errors. Both still have communication issues sometimes when using my interface.

    The error gadgetbridge shows is "Malformed JSON from Bangle.js: No value for t". The logs show my shadowclk.json data being fragmented. Do I just need to send it a "t" value first so it doesn't throw that error?

    22:58:14.438 [Binder:6136_2] INFO  n.f.g.s.d.b.BangleJSDeviceSupport - UART RX LINE: {"color":"#0ff","theme":"light"}
    22:58:14.438 [Binder:6136_2] INFO  n.f.g.s.d.b.BangleJSDeviceSupport - UART RX JSON parsed successfully
    22:58:14.439 [Binder:6136_2] INFO  n.f.g.s.d.b.BangleJSDeviceSupport - UART RX JSON parse failure: No value for t
    22:58:14.439 [Binder:6136_2] ERROR n.f.g.u.GB - Malformed JSON from Bangle.js: No value for t
    22:58:14.455 [main] INFO  n.f.g.d.b.AppsManagementActivity - WebView TX: me":"light"}
    (482)
    22:58:14.456 [main] INFO  n.f.g.d.b.AppsManagementActivity - WebView TX cmd: bangleRx("me\":\"light\"}\r\n");
    22:58:19.266 [JavaBridge] INFO  n.f.g.d.b.AppsManagementActivity - WebView RX: Bluetooth.println(JSON.stringify(require­("Storage").readJSON("setting.json", true)))
    
About

Avatar for stweedo @stweedo started