fix warning...
This commit is contained in:
@@ -92,7 +92,7 @@ void loop() {
|
|||||||
float temperature = dht.getTemperature();
|
float temperature = dht.getTemperature();
|
||||||
|
|
||||||
const char* status=dht.getStatusString();
|
const char* status=dht.getStatusString();
|
||||||
if (status=="OK") {
|
if (strcmp(status,"OK") == 0) {
|
||||||
// allocate the memory for the document
|
// allocate the memory for the document
|
||||||
const size_t CAPACITY = JSON_OBJECT_SIZE(3);
|
const size_t CAPACITY = JSON_OBJECT_SIZE(3);
|
||||||
StaticJsonDocument<CAPACITY> doc;
|
StaticJsonDocument<CAPACITY> doc;
|
||||||
|
|||||||
Reference in New Issue
Block a user