jeudi 1 septembre 2016

Downloading a Web page with ESP8266

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...
Downloading a Web page with ESP8266

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bE3o2j
via IFTTT

Aucun commentaire:

Enregistrer un commentaire