- WebSocketsClient
- SocketIoClient Note: SocketIoClient is only compatible with Socket.io v2.x.x. Newer versions will not work
- Clone this repository.
- Install PlatformIO plugin for VSCode.
- In VSCode: File > New Window.
- Open PlatformIO plugin (left side, 'Bee' icon).
- Open project, select a sensor folder in the sensor folder.
- Open
src/main.cpp
, changeconst char * espId = "ESP-1";
to an unique indetifier name. - Optional: change host url to the ip adress of your node server, change ssid and password to connect to your wifi network.
- Build project.
- Flash project.
- Clone this repository.
- Make a new folder in the sensor folder.
- Copy the ESP Template code to your own folder.
- Add libraries to the lib folder.
- Include library in the sensor.h file.
- You can code in the
sensor.cpp
file. (In the functionsensorSetup()
you can add the code that you normaly place in thesetup()
function, in the functionsensorCode()
you can add the code that you normaly place in theloop()
function.) - see "Flashing to ESP" to flash your code.