mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Fix wifi connection
This commit is contained in:
@@ -123,7 +123,6 @@ TCPServer::~TCPServer() {
|
|||||||
auto that = static_cast<TCPServer *>(args);
|
auto that = static_cast<TCPServer *>(args);
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
printf("top of loop\n");
|
|
||||||
fd_set readfds;
|
fd_set readfds;
|
||||||
FD_ZERO(&readfds);
|
FD_ZERO(&readfds);
|
||||||
int max_fd = -1;
|
int max_fd = -1;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
WifiManager::WifiManager() {
|
WifiManager::WifiManager() {
|
||||||
esp_netif_init();
|
esp_netif_init();
|
||||||
|
esp_wifi_set_storage(WIFI_STORAGE_RAM);
|
||||||
esp_event_loop_create_default();
|
esp_event_loop_create_default();
|
||||||
|
|
||||||
this->m_mutex = xSemaphoreCreateMutex();
|
this->m_mutex = xSemaphoreCreateMutex();
|
||||||
|
|||||||
Reference in New Issue
Block a user