Hi, I want to test a Wemos ESP8266 D1 mini to find out what IP address it had on my wifi network.
But get this error
What is the error Thank you
Hi, I want to test a Wemos ESP8266 D1 mini to find out what IP address it had on my wifi network.
Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE
at the top of my code i have
# ifdef ESP32
# include <WiFi.h>
# elif defined (ESP8266)
# include <ESP8266WiFi.h>
# endif
do the 'w' and 'f' need to be Capitalized?
I got this error
A fatal error occurred: This chip is ESP8266 not ESP32. Wrong --chip argument?
Failed uploading: uploading error: exit status 2
if you have an ESP8266, you should specify that chip.
the elif case is for the 8266. the compiler will figure it out
Or you could just delete the first 2 lines
# ifdef ESP32
# include <WiFi.h>
leaving the #elif will cause an error
just correcting the Capitalization in the original code should fix it
Please stop posting pictures of code
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.