chrisjoyce911 / esp32FOTA

Experiments in firmware OTA updates for ESP32 dev boards
The Unlicense
358 stars 86 forks source link

variable "esp32FOTA" is not a name type #137

Closed Nikitanagar closed 1 month ago

Nikitanagar commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

Nikitanagar commented 10 months ago

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

tobozo commented 1 month ago

hi,

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