Skip to content

Commit 3c38f96

Browse files
authored
Update node_initializer.c. Change when ap initiates on initialize_node_as_ap where on esp_wifi_set_config(ESP_IF_WIFI_AP, &ap_config) ESP_IF_WIFI_STA was wrongly passed. Changed to ESP_IF_WIFI_AP. Save param as the configuration struct.
1 parent 4d363cf commit 3c38f96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/main/node_initializer.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void initialize_node_as_ap(initializer_struct *initializer){
109109
}
110110
};
111111
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_APSTA));
112-
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &ap_config));
112+
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_AP, &ap_config));
113113
ESP_ERROR_CHECK(esp_wifi_start());
114114
}
115115

@@ -419,4 +419,4 @@ void init_ap_timer(){
419419
ESP_ERROR_CHECK(gptimer_register_event_callbacks(gptimer, &timer_callback_st, NULL));
420420
ESP_ERROR_CHECK(gptimer_enable(gptimer));
421421
ESP_ERROR_CHECK(gptimer_start(gptimer));
422-
}
422+
}

0 commit comments

Comments
 (0)