OTA task
This commit is contained in:
@@ -51,9 +51,9 @@ void init_wifi(const char* ssid, const char* pass) {
|
||||
esp_event_handler_instance_t instance_got_ip;
|
||||
|
||||
esp_event_handler_instance_register(WIFI_EVENT, ESP_EVENT_ANY_ID,
|
||||
&wifi_event_handler, NULL, &instance_any_id);
|
||||
&wifi_event_handler, nullptr, &instance_any_id);
|
||||
esp_event_handler_instance_register(IP_EVENT, IP_EVENT_STA_GOT_IP,
|
||||
&wifi_event_handler, NULL, &instance_got_ip);
|
||||
&wifi_event_handler, nullptr, &instance_got_ip);
|
||||
|
||||
wifi_config_t wifi_config = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user