Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
TIT8 committed Dec 18, 2023
1 parent 3ae4fd4 commit 823804a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_
case MQTT_EVENT_CONNECTED:
ESP_LOGI(TAG, "MQTT_EVENT_CONNECTED");
disconnected = false;
// Check MQTT communication via serial
msg_id = esp_mqtt_client_subscribe(client, "<YOUR_SHELLY_ID>/status/switch:0", 2);
ESP_LOGI(TAG, "sent subscribe successful, msg_id=%d", msg_id);
break;
Expand Down

0 comments on commit 823804a

Please sign in to comment.