You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SocketIoClientNote: SocketIoClient is only compatible with Socket.io v2.x.x. Newer versions will not work
Flashing to ESP
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, change const 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.
Add own sensor code
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 function sensorSetup() you can add the code that you normaly place in the setup() function, in the function sensorCode() you can add the code that you normaly place in the loop() function.)