Probleme compilation esp32

Exemple de ESP32 Client-Server Wi-Fi Communication Between Two Boards | Random Nerd Tutorials
la partie client :
slight_smile: src/main.cpp:72:21: error: ‘httpGETRequest’ was not declared in this scope
temperature = httpGETRequest(serverNameTemp);
Fonctionne trés bien sur Ide Arduino
Cordialement
sergrM

You trying to write .ino code in a .cpp file without doing the necessary conversion for function prototypes (documentation).

You have to add

String httpGETRequest(const char* serverName);

under const long interval = 5000; .

Alternatively, rename main.cppmain.ino.

Merci pour l’info, je ferai attention la prochaine fois