waterrower-ble
waterrower-ble copied to clipboard
waterrower-ble not working offline
First thing first: great work @olympum
I managed to make it work with iPhones via BLE, as a headless unit, using 2 services, one with ble and one with usb options.
There are several crashing situations that I managed to circumvent by using "Supervisor" on the processes.
There is only one critical issue: it does not work if RPI is not connected to internet when starting the ble service. It crashes here: "self.client.addMembership('224.0.0.1');
If I start the processes connected, and disconnect later, all is good.
I managed to avoid crashing by adding an internal IP like this: self.client.addMembership('224.0.0.1', '127.0.0.1'); //(no more DNS lookup) But the process still does not work correctly, because it does not read anything from port '5007' when not connected, and I get '0' values as output.
I tried everything, but can't seem to make it work when RPI is not connected to Wifi or LAN.
I think it's a "dgram" issue, but I can't find a solution. If anyone has any ideas on how to fix this, please chip in.
If you ping 224.0.0.1
from a terminal, when the RPi has no Internet route, do you still see the other device(s) in your network?
Hi Olympum, Thanks for replying. Nope, the IP is not reachable with Waterrower connected and no network.