-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wifievent problem #9
Comments
Coloque essas duas linhas depois do include:
This error occurs because the functions used to connect to WiFi are at the end of the code, without having been declared before. So your code considers that they don't exist. That should do it! |
i don't understand |
After |
hablas español? No logro hacerlo funcionar, lo coloque hasta el principio del código, pero da exactamente le mismo error #include <Tello.h> #include <Tello.h> #include <Tello.h> void connectToWiFi(const char * ssid, const char * pwd); // WiFi network name and password: //Are we currently connected? |
still same problem |
`#include <Tello.h> #include <Tello.h> void connectToWiFi(const char * ssid, const char * pwd) // delete old config //Initiate connection Serial.println("Waiting for WIFI connection..."); //wifi event handler
} // WiFi network name and password: //Are we currently connected? Tello tello; void setup() void loop()
} ` void WiFiEvent(WiFiEvent_t event) |
I have the same problem.
HELP ? |
I have resolved this, by creating my own Lib |
I have solved this |
Using ESP8266WiFi.h library and getting this error. C:\Users\xxx\Documents\Arduino\tello\tello_example\tello_example.ino: In function 'void WiFiEvent(WiFiEvent_t)': exit status 1 Compilation error: 'SYSTEM_EVENT_STA_GOT_IP' was not declared in this scope |
After changing // WiFi network name and password: //Are we currently connected? Tello tello; void setup() void loop()
} void connectToWiFi(const char * ssid, const char * pwd) // delete old config //Initiate connection Serial.println("Waiting for WIFI connection..."); //wifi event handler
} |
I have this error, any solution? im begginer
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
tello_example:64:16: error: variable or field 'WiFiEvent' declared void
void WiFiEvent(WiFiEvent_t event)
tello_example:64:16: error: 'WiFiEvent_t' was not declared in this scope
C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino: In function 'void connectToWiFi(const char*, const char*)':
tello_example:53:23: error: no matching function for call to 'WiFiClass::disconnect(bool)'
WiFi.disconnect(true);
C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino:53:23: note: candidate is:
In file included from C:\Users\neuro\Documents\Arduino\libraries\tello/Tello.h:12:0,
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:130:9: note: int WiFiClass::disconnect()
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:130:9: note: candidate expects 0 arguments, 1 provided
tello_example:55:8: error: 'class WiFiClass' has no member named 'onEvent'
WiFi.onEvent(WiFiEvent);
tello_example:55:16: error: 'WiFiEvent' was not declared in this scope
WiFi.onEvent(WiFiEvent);
tello_example:58:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
WiFi.begin(ssid, pwd);
In file included from C:\Users\neuro\Documents\Arduino\libraries\tello/Tello.h:12:0,
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi\src/WiFi.h:79:9: error: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' [-fpermissive]
C:\Users\neuro\Downloads\telloArduino-master\telloArduino-master\tello_example\tello_example.ino: At global scope:
tello_example:64:16: error: variable or field 'WiFiEvent' declared void
void WiFiEvent(WiFiEvent_t event)
tello_example:64:16: error: 'WiFiEvent_t' was not declared in this scope
exit status 1
variable or field 'WiFiEvent' declared void
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: