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

variable "esp32FOTA" is not a name type #137

Closed
Nikitanagar opened this issue Nov 8, 2023 · 4 comments
Closed

variable "esp32FOTA" is not a name type #137

Nikitanagar opened this issue Nov 8, 2023 · 4 comments

Comments

@Nikitanagar
Copy link

I am using this library with vs code and it is showing this error: variable "esp32FOTA" is not a name type , in esp32FOTA("esp32-fota-http", 1, false); line. Can you please tell me which data type I need to define here?

@tobozo
Copy link
Collaborator

tobozo commented Nov 8, 2023

indeed the type is the same as the variable name in the readme and the examples, that's certainly confusing :-)

here's what the compiler probably expects:

esp32FOTA esp32FOTA("esp32-fota-http", "1.0.0");

just rename the variable if vsCode doesn't like it:

esp32FOTA my_FOTA_Object("esp32-fota-http", "1.0.0");

@Nikitanagar
Copy link
Author

Yeah, It is solved now. Thank you for the help.

@Nikitanagar
Copy link
Author

it is showing this error [E][WiFiGeneric.cpp:1578] hostByName(): DNS Failed for server. Can you tell me why it occurred?

@tobozo
Copy link
Collaborator

tobozo commented Aug 19, 2024

hi,

DNS failure is a problem on your network, maybe your router is offline or filtering traffic

@tobozo tobozo closed this as completed Aug 19, 2024
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