jayel Active Member Licensed User Longtime User Feb 25, 2016 #1 Hello, Many examples show how you can do ajax posts when for example you push a html button on a page. But how can I force ajax posts when the input of a raspberry pi (with piface 2) state changes? How can I force a ajax post with B4J code ? John
Hello, Many examples show how you can do ajax posts when for example you push a html button on a page. But how can I force ajax posts when the input of a raspberry pi (with piface 2) state changes? How can I force a ajax post with B4J code ? John
Erel B4X founder Staff member Licensed User Longtime User Feb 25, 2016 #2 Don't use ajax. You should either user websockets or MQTT. https://www.b4x.com/android/forum/t...ce-raspberry-pi-server-example.39992/#content https://www.b4x.com/android/forum/threads/iot-welcome-to-the-internet-of-things.60663/#content Upvote 0
Don't use ajax. You should either user websockets or MQTT. https://www.b4x.com/android/forum/t...ce-raspberry-pi-server-example.39992/#content https://www.b4x.com/android/forum/threads/iot-welcome-to-the-internet-of-things.60663/#content