As a general rule, I recommend to use Raspberry Pi with B4J to interact with web servers or http clients. It is much more powerful and simpler to develop. The Arduino and ESP8266 strengths are in other domains.
This small example sends a http request with WiFiSocket and reads the response with AsyncStreams.
Code:
Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
Private astream As AsyncStreams
Private socket As WiFiSocket
End Sub
Private Sub AppStart...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bE3o2j
via IFTTT
Aucun commentaire:
Enregistrer un commentaire