Error compiling the code

I'm using an ESP 32 and facing this error while trying to integrate with the Blynk IOT, basically there is some issue with the WIFI.h and BlynSimpleESP32.h libraries:

In file included from C:\Users\DELL\Documents\Arduino\Energymeter\Energymeter.ino:7:
c:\Users\DELL\Documents\Arduino\libraries\blynk-library-master\src/BlynkSimpleEsp32.h: In member function 'void BlynkWifi::connectWiFi(const char*, const char*)':
c:\Users\DELL\Documents\Arduino\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:37:14: error: 'class WiFiClass' has no member named 'mode'
         WiFi.mode(WIFI_STA);
              ^~~~
c:\Users\DELL\Documents\Arduino\libraries\blynk-library-master\src/BlynkSimpleEsp32.h:37:19: error: 'WIFI_STA' was not declared in this scope
         WiFi.mode(WIFI_STA);
                   ^~~~~~~~

exit status 1

Compilation error: exit status 1

There is no BlynSimpleESP32.h, but there is a BlynkSimpleESP32.h. In BlynkSimpleESP32.h repository, lines 17 and 19 are blank... un-install and re-install the Blynk package again with your IDE.

That(BlynSimpleESP32) was a typo my dear friend.

A typo in a sketch means "does not work." You ask for help then mock it?


I'm not mocking or anything I'm just saying I've not made that mistake in the sketch

Then you fixed your problem. Good work.

[edit]
Showing your "typo" is indicating you got sloppy in writing, as every keystroke matters. You glossed over the other advice, but I hope you tried it and made it work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.