I not sure if anyone has any experience with interfacing a Wifi ESP8266 module? I have the arduino program set up so it can program the module (I tried a demo LED Blink code) but I can't for the life of me get any ESP8266WiFi library (ESP8266WiFi.h) to work as I just get compiler errors relating to missing files or settings? Has anyone had any success with this?
After downloading several other libraries linked to ESP8266WiFi.h (*.*h files) I sill get this error -
C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/debug.h:73:2: error: #error "If you want to use LWIP_ASSERT, LWIP_PLATFORM_ASSERT(message) needs to be defined in your arch/cc.h"
#error "If you want to use LWIP_ASSERT, LWIP_PLATFORM_ASSERT(message) needs to be defined in your arch/cc.h"
^~~~~
In file included from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/IPAddress.h:27:0,
from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:31,
from C:\Users\Pee\AppData\Local\Temp\arduino_modified_sketch_571806\Blink.ino:24:
In file included from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/ipv4_addr.h:29:0,
from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/ip_addr.h:29,
from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/IPAddress.h:28,
from C:\Users\Pee\Documents\Arduino\libraries\ESP8266WiFi\src/ESP8266WiFi.h:31,
from C:\Users\Pee\AppData\Local\Temp\arduino_modified_sketch_571806\Blink.ino:24:
the ESP8266WiFi library works only as library bundled with the esp8266 Arduino boards support package which allows to write Arduino sketches for esp8266 boards and modules.
Cheers Juraj, I will try downloading those libraries you sent the link for it just seem with ESP8266WiFi library there seems an endless list of 'includes' relating to other .h files I must have downloaded 50-100 of these .h files for the compiler! I am thinking is there a way to serially communicate with the ESP8266 module via an arduino and get it to echo the serial data wirelessly? Thus negating any ESP8266 programming.
read my comment again. focus on 'bundled' and sketches for esp8266.
to use esp8266 module as WiFi adapter you can use WiFiEsp library with old AT firmware in esp8266, my WiFiEspAT library with new AT firmware or WiFiLink library with WiFiLink firmware.
or you can write your own sketch for esp8266 and communicate with the sketch in the other Arduino. or use only esp8266 as Arduino.