Chat freely about anything...

User avatar
By gbenna
#80733 I have an Arduino UNO 3 and an ESP8266 esp-01. I have it connected with TX to 2 and RX to 3, power to power and ch-pd, ground to ground. I choose the Arduino board and serial port and use this code;

but when I run it I get an error that the queue.h file is not found.
I would really like to be able to input the network and password as described in my project but always get this problem. Is there a youtube video that shows how to connect everything up and the code necessary to do this. Really a NOOBEE and need help.

Code: Select allinclude <ESP8266WiFi.h>          //https://github.com/esp8266/Arduino

//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>         //https://github.com/tzapu/WiFiManager


void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);

    //WiFiManager
    //Local intialization. Once its business is done, there is no need to keep it around
    WiFiManager wifiManager;
    //reset saved settings
    //wifiManager.resetSettings();
   
    //set custom ip for portal
    //wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));

    //fetches ssid and pass from eeprom and tries to connect
    //if it does not connect it starts an access point with the specified name
    //here  "AutoConnectAP"
    //and goes into a blocking loop awaiting configuration
    wifiManager.autoConnect("AutoConnectAP");
    //or use this for auto generated name ESP + ChipID
    //wifiManager.autoConnect();

   
    //if you get here you have connected to the WiFi
    Serial.println("connected...yeey :)");
}

void loop() {
    // put your main code here, to run repeatedly:
   
}