main/task_mqtt.c

changeset 24
64078aa15512
parent 23
58a328e91881
child 28
6d825e2962e4
--- a/main/task_mqtt.c	Thu Nov 07 15:09:51 2019 +0100
+++ b/main/task_mqtt.c	Thu Nov 07 22:58:48 2019 +0100
@@ -209,7 +209,7 @@
 	ESP_LOGE(TAG, "publishNode() lock DS18B20 error");
     }
 
-    if (xSemaphoreTake(xSemaphoreWiFi, 10) == pdTRUE) {
+    if (xSemaphoreTake(xSemaphoreWiFi, 25) == pdTRUE) {
 	payload = xstrcat(payload, (char *)",\"net\":{\"address\":\"");
 	payload = xstrcat(payload, wifi_state->STA_ip);
         payload = xstrcat(payload, (char *)"\",\"ifname\":\"sta\",\"rssi\":");

mercurial