I have a php file in my website which returns sensor reading. I had been fetching this reading and displaying in my Serial monitor using the below code
http.begin("http://<MYWEBSITE>/fetch_sensor.php");
int httpCode = http.GET();
if (httpCode > 0) {
String payload = http.getString();
SensorReading = payload.toInt();
Serial.print("Sensor Reading=");
Serial.print(SensorReading);
Serial.println();
}
Now I have updated my php file to return readings of multiple sensors. The readings are returned seperated by commas like 23,66,82,100
I am looking to update my code so that the readings returned by the php file is assigned as SensorReading1, SensorReading2, SensorReading3 etc.
Seeking help from experts.. Thanks!!