Waldemar Lima Well-Known Member Licensed User Longtime User Feb 20, 2021 #1 Is the ESP8266WiFi library compatible with Esp32 or only with ESP8266 ??
thetahsk Active Member Licensed User Longtime User Feb 20, 2021 #2 Waldemar Lima said: Is the ESP8266WiFi library compatible with Esp32 or only with ESP8266 ?? Click to expand... The rESP8266Wifi lib is working on both MCU's If you are in doubt of a library take a look into the headers. B4X: #pragma once #include "B4RDefines.h" #ifdef ESP32 #include <WiFi.h> #include <WiFiClientSecure.h> #else #include <ESP8266WiFi.h> #endif #include <WiFiUdp.h> Upvote 0
Waldemar Lima said: Is the ESP8266WiFi library compatible with Esp32 or only with ESP8266 ?? Click to expand... The rESP8266Wifi lib is working on both MCU's If you are in doubt of a library take a look into the headers. B4X: #pragma once #include "B4RDefines.h" #ifdef ESP32 #include <WiFi.h> #include <WiFiClientSecure.h> #else #include <ESP8266WiFi.h> #endif #include <WiFiUdp.h>