mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
STRING TO CHAR
This commit is contained in:
1 parent
65439922b1
commit
b2e4da37bf
1 file changed
+3
-3
@@ -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++;
|
||||||
|
|||||||
Reference in new issue
Block a user