-
Create variable to store signal data
String NewData = "[";
-
Add to switch case block. Add before
default
casevoid readBuffer(HardwareSerial buffReader){ ... switch (rx) { case 'N': active = true; combineTo = &NewData; break; ... }
-
Add to the HTTPpayload and add the removeComma statement in
Send_data
functionvoid Send_data(WiFiClient cl) { ... removeComma(NewData); ... payload = ... + NewData + "] ," ...; }
-
Add to
resetData
void resetData(){ ... NewData = "["; }
Files
This branch is 5 commits behind pulasthieka/fyp-system:refactor.
esp32-v2
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||