user62025: Can I only use the Arduino standard library, without touching any esp8266 related header files?
I tried to connect to WiFi , succeeded with ESP8266WiFi.h header, but failed with  Arduino library WiFi.h.
I follow this https://www.arduino.cc/en/Tutorial/ConnectWithWPA WiFi connecting tutorial but the board seems to reboot repeatly (I don't understand the error of course. I know nothing about hardware).
My board is ESP8266 V3 ESP-12N F NodeMcu Lua CP2102

user313: The WiFi shield and an ESP8266 with any of several popular WiFi services firmwares are different pieces of hardware, each of which can provide WiFi services to another device connected to it, such as an Arduino Uno. Their interfaces are different, despite that they could be used to do similar jobs - offloading the WiFi communications from the Arduino - and the two libraries are written to drive each of them, respectively.

62025: <p>Can I only use the Arduino standard library, without touching any esp8266 related header files?</p>

<p>I tried to connect to WiFi , succeeded with <code>ESP8266WiFi.h</code> header, but failed with  Arduino library <code>WiFi.h</code>.</p>

<p>I follow this <a href="https://www.arduino.cc/en/Tutorial/ConnectWithWPA" rel="nofollow noreferrer">https://www.arduino.cc/en/Tutorial/ConnectWithWPA</a> WiFi connecting tutorial but the board seems to reboot repeatly (I don't understand the error of course. I know nothing about hardware).</p>

<p>My board is <code>ESP8266 V3 ESP-12N F NodeMcu Lua CP2102</code></p>
 313: <p>The <a href="https://store.arduino.cc/usa/arduino-wifi-shield" rel="nofollow noreferrer">WiFi shield</a> and an <a href="https://www.sparkfun.com/products/13678" rel="nofollow noreferrer">ESP8266 with any of several popular WiFi services firmwares</a> are different pieces of hardware, each of which can provide WiFi services to another device connected to it, such as an Arduino Uno. Their interfaces are different, despite that they could be used to do similar jobs - offloading the WiFi communications from the Arduino - and the two libraries are written to drive each of them, respectively.</p>
