esp32FOTA icon indicating copy to clipboard operation
esp32FOTA copied to clipboard

variable "esp32FOTA" is not a name type

Open Nikitanagar opened this issue 1 year ago • 3 comments

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?

Nikitanagar avatar Nov 08 '23 14:11 Nikitanagar

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");

tobozo avatar Nov 08 '23 16:11 tobozo

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

Nikitanagar avatar Nov 09 '23 06:11 Nikitanagar

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

Nikitanagar avatar Nov 09 '23 06:11 Nikitanagar

hi,

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

tobozo avatar Aug 19 '24 10:08 tobozo