Skip to content

Example code is not working #1

@Rakesh420

Description

@Rakesh420

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,

             from F:\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:130:9: note: int WiFiClass::disconnect()

 int disconnect(void);

     ^

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,

             from F:\telloArduino-master\tello_example\tello_example.ino:1:

C:\Program Files (x86)\Arduino\libraries\WiFi\src/WiFi.h:79:9: error: initializing argument 1 of 'int WiFiClass::begin(char*, const char*)' [-fpermissive]

 int begin(char* ssid, const char *passphrase);

     ^

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions