-
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
Example code is not working #1
Comments
Did you solve this problem? |
HI I just tested the code on Windows PC with Arduino 1.8.13 and it compiles just fine. Please make sure you are using the latest stable version of Arduino |
I am using, Arduino version 1.8.13, but it still showing same error `#include <Tello.h> // 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
} |
Arduino: 1.8.10 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (no SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
tello_example:63:16: error: variable or field 'WiFiEvent' declared void
void WiFiEvent(WiFiEvent_t event)
tello_example:63:16: error: 'WiFiEvent_t' was not declared in this scope
F:\telloArduino-master\tello_example\tello_example.ino: In function 'void connectToWiFi(const char*, const char*)':
tello_example:52:23: error: no matching function for call to 'WiFiClass::disconnect(bool)'
WiFi.disconnect(true);
F:\telloArduino-master\tello_example\tello_example.ino:52:23: note: candidate is:
In file included from C:\Users\R\Documents\Arduino\libraries\tello/Tello.h:12:0,
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:130:9: note: int WiFiClass::disconnect()
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:130:9: note: candidate expects 0 arguments, 1 provided
tello_example:54:8: error: 'class WiFiClass' has no member named 'onEvent'
WiFi.onEvent(WiFiEvent);
tello_example:54:16: error: 'WiFiEvent' was not declared in this scope
WiFi.onEvent(WiFiEvent);
tello_example:57:23: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
WiFi.begin(ssid, pwd);
In file included from C:\Users\R\Documents\Arduino\libraries\tello/Tello.h:12:0,
C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: error: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' [-fpermissive]
F:\telloArduino-master\tello_example\tello_example.ino: At global scope:
tello_example:63:16: error: variable or field 'WiFiEvent' declared void
void WiFiEvent(WiFiEvent_t event)
tello_example:63:16: error: 'WiFiEvent_t' was not declared in this scope
Multiple libraries were found for "SPI.h"
Used: C:\Users\R
Multiple libraries were found for "Tello.h"
Used: C:\Users\R
Not used: C:\Users\R
Multiple libraries were found for "WiFi.h"
Used: C:\Program
Multiple libraries were found for "ESP8266WiFi.h"
Used: C:\Users\R
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: