Skip to content

Connect The ESP 2688 to Socket IO and receive JSON Strings

Notifications You must be signed in to change notification settings

HB0N0/ESP8266-SocketIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

ESP8266-SocketIO

Connect the ESP8266 to Socket IO and receive JSON Strings.

Requirements

  • ArduinoJson by Benoit Blanchon
  • SocketIoClient by Vincent Wyszynski

Explanation

Connect your ESP8266 to your SocketIo-Server an receive JSON-data to toggle the intern LED of the ESP. In this case the ESP listens to the 'switch_change' event. If the event is emitted by the SocketIo Server the ESP will parse the JSON payload which looks like this:

{"name":"switch_1","val":false}

After that it toggles the built-in LED in case of the boolean 'val'.

About

Connect The ESP 2688 to Socket IO and receive JSON Strings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages