Open langnermedia opened 2 days ago
Hello I have played your script in an ESP32 WROOM with the latest libs. Unfortunately I only get error messages. Like these above, can you bring this to a current state so that your program is running again?
Hello, sorry for the late reply. I was only able to look into it now and adjust the code. Please check whether you can use it now.
Good evening,
Thanks for the fix :) The script can be imported and seems to work. However, I cannot connect my GoPros to the ESP32. None of the cameras recognizes the remote connection is not possible the connection goes into timeout ....
Is this a problem with the new firmware? Or my GoPro 11 ?
/Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino: In function 'void setup()': /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:94:13: error: no matching function for call to 'WiFiClass::onEvent(void (&)(arduino_event_id_t, arduino_event_info_t), ip_event_t)' 94 | WiFi.onEvent(onIpAssign, IP_EVENT_AP_STAIPASSIGNED); |
~~^~~~~~~~~ In file included from /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiSTA.h:29, from /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFi.h:33, from /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:4: /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:82:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventSysCb, arduino_event_id_t)' 82 | wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:82:70: note: no known conversion for argument 2 from 'ip_event_t' to 'arduino_event_id_t' 82 | wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:80:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventCb, arduino_event_id_t)' 80 | wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:80:67: note: no known conversion for argument 2 from 'ip_event_t' to 'arduino_event_id_t' 80 | wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:81:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventFuncCb, arduino_event_id_t)' 81 | wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:81:71: note: no known conversion for argument 2 from 'ip_event_t' to 'arduino_event_id_t' 81 | wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:95:13: error: no matching function for call to 'WiFiClass::onEvent(void (&)(arduino_event_id_t, arduino_event_info_t), wifi_event_t)' 95 | WiFi.onEvent(onStationDisconnected, WIFI_EVENT_AP_STADISCONNECTED); |~~^~~~~~~~~~~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:82:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventSysCb, arduino_event_id_t)' 82 | wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:82:70: note: no known conversion for argument 2 from 'wifi_event_t' to 'arduino_event_id_t' 82 | wifi_event_id_t onEvent(WiFiEventSysCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:80:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventCb, arduino_event_id_t)' 80 | wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:80:67: note: no known conversion for argument 2 from 'wifi_event_t' to 'arduino_event_id_t' 80 | wifi_event_id_t onEvent(WiFiEventCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:81:19: note: candidate: 'network_event_handle_t WiFiGenericClass::onEvent(NetworkEventFuncCb, arduino_event_id_t)' 81 | wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); | ^~~ /Users/andy/Library/Arduino15/packages/esp32/hardware/esp32/3.0.7/libraries/WiFi/src/WiFiGeneric.h:81:71: note: no known conversion for argument 2 from 'wifi_event_t' to 'arduino_event_id_t' 81 | wifi_event_id_t onEvent(WiFiEventFuncCb cbEvent, arduino_event_id_t event = ARDUINO_EVENT_MAX); |~~~~~^~~~~~~ /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino: In function 'void onStationDisconnected(arduino_event_id_t, arduino_event_info_t)': /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:168:21: error: 'union arduino_event_info_t' has no member named 'sta_disconnected'; did you mean 'eth_connected'? 168 | if (memcmp(info.sta_disconnected.mac, cams[i].getMac(), 6) == 0) | ^~~~| eth_connected /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino: In function 'void onIpAssign(arduino_event_id_t, arduino_event_info_t)': /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:190:11: error: 'adapter_sta_list' was not declared in this scope 190 | memset(&adapter_sta_list, 0, sizeof(adapter_sta_list)); | ^~~~/Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:197:5: error: 'tcpip_adapter_sta_info_t' was not declared in this scope 197 | tcpip_adapter_sta_info_t station = adapter_sta_list.sta[i]; | ^~~~~~~~ /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:201:18: error: 'station' was not declared in this scope; did you mean 'static'? 201 | if (memcmp(station.mac, cams[x].getMac(), 6) == 0) | ^~~ | static /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino: In function 'void sendToCam(uint8_t*, int)': /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:233:3: error: 'tcpip_adapter_sta_list_t' was not declared in this scope 233 | tcpip_adapter_sta_list_t adapter_sta_list; | ^~~~~~~~ /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:236:11: error: 'adapter_sta_list' was not declared in this scope 236 | memset(&adapter_sta_list, 0, sizeof(adapter_sta_list)); | ^~~~/Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:239:3: error: 'tcpip_adapter_get_sta_list' was not declared in this scope 239 | tcpip_adapter_get_sta_list(&wifi_sta_list, &adapter_sta_list); | ^~~~~~/Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:244:5: error: 'tcpip_adapter_sta_info_t' was not declared in this scope 244 | tcpip_adapter_sta_info_t station = adapter_sta_list.sta[i]; | ^~~~~~~~ /Users/andy/Downloads/GoProRC_ESP32-main/GoProRC_ESP32-main/GoProRC_ESP32/GoProRC_ESP32.ino:249:21: error: 'station' was not declared in this scope; did you mean 'static'? 249 | Udp.beginPacket(station.ip.addr, camUdpPort); | ^~~ | staticexit status 1
Compilation error: no matching function for call to 'WiFiClass::onEvent(void (&)(arduino_event_id_t, arduino_event_info_t), ip_event_t)'