Skip to content
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 is not working with problem Wifi connect issue #8

Open
Yuseungyong opened this issue Dec 8, 2020 · 1 comment
Open

Example is not working with problem Wifi connect issue #8

Yuseungyong opened this issue Dec 8, 2020 · 1 comment

Comments

@Yuseungyong
Copy link

Yuseungyong commented Dec 8, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants