-
Notifications
You must be signed in to change notification settings - Fork 64
Closed as not planned
Labels
conclusion: off topicOff topic for this repositoryOff topic for this repositorytopic: codeRelated to content of the project itselfRelated to content of the project itselftype: enhancementProposed improvementProposed improvement
Description
const char* sensor = doc["sensor"] | "unknown";
That could be ok, but when I use byte type and want to have all 256 numbers disponible, there is no solution.
I like that in Python I am able to do the check: using in. I need to implement following logic:
byte temp = 24; //default value
if("temp" in doc["temp"]) temp = doc["temp"]; //ovewriting the value if it is in JSON
Metadata
Metadata
Assignees
Labels
conclusion: off topicOff topic for this repositoryOff topic for this repositorytopic: codeRelated to content of the project itselfRelated to content of the project itselftype: enhancementProposed improvementProposed improvement