akshayvernekar / telloArduino

Open source arudino library for controlling tello through ESP32
34 stars 17 forks source link

Example is not working with problem Wifi connect issue #8

Open Yuseungyong opened 3 years ago

Yuseungyong commented 3 years ago

I solved previous issue (min & max).. but i have a problem with wifi issue below.. Do you know anything about this?

error message:

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: In function 'void connectToWiFi(const char, const char)':

tello_example:53:24: error: no matching function for call to 'WiFiClass::disconnect(bool)'

WiFi.disconnect(false);

                    ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:130:9: note: candidate: int WiFiClass::disconnect()

 int disconnect(void);

     ^~~~~~~~~~

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\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);

            ^~~~~~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:55:16: note: suggested alternative: 'WiFiClient'

WiFi.onEvent(WiFiEvent);

            ^~~~~~~~~

            WiFiClient

tello_example:58:23: error: invalid conversion from 'const char' to 'char' [-fpermissive]

WiFi.begin(ssid, pwd);

                   ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:79:9: note: initializing argument 1 of 'int WiFiClass::begin(char, const char)'

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

     ^~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: At global scope:

tello_example:64:3: error: expected unqualified-id before 'switch'

switch (event)

^~

tello_example:80:1: error: expected declaration before '}' token

}

^

exit status 1

no matching function for call to 'WiFiClass::disconnect(bool)'

DEAD-GOST commented 3 years ago

I solved previous issue (min & max).. but i have a problem with wifi issue below.. Do you know anything about this?

error message:

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: In function 'void connectToWiFi(const char, const char)':

tello_example:53:24: error: no matching function for call to 'WiFiClass::disconnect(bool)'

WiFi.disconnect(false);

                    ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:130:9: note: candidate: int WiFiClass::disconnect()

 int disconnect(void);

     ^~~~~~~~~~

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\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);

            ^~~~~~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:55:16: note: suggested alternative: 'WiFiClient'

WiFi.onEvent(WiFiEvent);

            ^~~~~~~~~

            WiFiClient

tello_example:58:23: error: invalid conversion from 'const char' to 'char' [-fpermissive]

WiFi.begin(ssid, pwd);

                   ^

In file included from C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\tello/Tello.h:12:0,

             from C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino:3:

C:\Users\Desktop\Desktop\arduino-1.8.13-windows\arduino-1.8.13\libraries\WiFi\src/WiFi.h:79:9: note: initializing argument 1 of 'int WiFiClass::begin(char, const char)'

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

     ^~~~~

C:\Users\Desktop\AppData\Local\Temp\arduino_modified_sketch_324642\tello_example.ino: At global scope:

tello_example:64:3: error: expected unqualified-id before 'switch'

switch (event)

^~

tello_example:80:1: error: expected declaration before '}' token

}

^

exit status 1

no matching function for call to 'WiFiClass::disconnect(bool)'

I have solved this by creating my own lib example code https://github.com/DEAD-GOST/Tello_esp8266 Lib https://github.com/DEAD-GOST/Tello