STRING TO CHAR
This commit is contained in:
parent
65439922b1
commit
b2e4da37bf
@ -79,10 +79,10 @@ void loop() {
|
|||||||
DeserializationError error = deserializeJson(doc, httpPayload); //Get deserialization Error if exists
|
DeserializationError error = deserializeJson(doc, httpPayload); //Get deserialization Error if exists
|
||||||
|
|
||||||
//configuration setup
|
//configuration setup
|
||||||
String hostName = doc["device"]["hostname"];
|
|
||||||
int sleepTime = doc["device"]["sleepTime"];
|
int sleepTime = doc["device"]["sleepTime"];
|
||||||
String ipAddress = doc["device"]["ipAddress"];
|
char *hostName = doc["device"]["hostname"].c_str();
|
||||||
String state = doc["state"];
|
char *ipAddress = doc["device"]["ipAddress"].c_str();
|
||||||
|
char *state = doc["state"].c_str();
|
||||||
|
|
||||||
if (state != "succes") {
|
if (state != "succes") {
|
||||||
unsuccessfulRounds++;
|
unsuccessfulRounds++;
|
||||||
|
Loading…
Reference in New Issue
Block a user