Can someone share a SIMPLE example of using WebSockets to communicate between B4R / B4J?
How is WebSockets different from using a normal socket for reliable transmission from code point of view? (i.e. detecting that Wifi connection dropped and reconnecting automatically)
I have seen https://www.b4x.com/android/forum/t...ay-dht11-sensor-data-google-line-chart.67181/ but I'm having trouble understanding the use of the Arduino and Browser classes with respect to the main code.
I want to create something that transfers data between B4R and B4J that doesn't require a broker (so MQTT is not an option) but it must reconnect if Wifi drops (or something else goes wrong). How do you handle this? Any tips on creating robust code?
Thanks
How is WebSockets different from using a normal socket for reliable transmission from code point of view? (i.e. detecting that Wifi connection dropped and reconnecting automatically)
I have seen https://www.b4x.com/android/forum/t...ay-dht11-sensor-data-google-line-chart.67181/ but I'm having trouble understanding the use of the Arduino and Browser classes with respect to the main code.
I want to create something that transfers data between B4R and B4J that doesn't require a broker (so MQTT is not an option) but it must reconnect if Wifi drops (or something else goes wrong). How do you handle this? Any tips on creating robust code?
Thanks