Giter Site home page Giter Site logo

esp-arduino-apboot's Introduction

esp-arduino-apboot

ESP8266 wifi configurator in Arduino lang.. uses eeprom for configs, boots to AP mode if no working config found

esp-arduino-apboot's People

Contributors

chriscook8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp-arduino-apboot's Issues

qsid esid question

Hi first congratulation for the code, Im try to do the same but ith the esp8266webserver library, Im checking the code and I dont understand why you write the ssid in the string qsid and you read esid for looking the ssid, why is that or Im wrong thnak you

WiFi Connection established even if the eeprom is clear

I was trying to clear the eeprom after which when i reset the ESP chip, the eeprom is cleared, but the ESP still connects to the previous WiFi. Something like this :

Output

Startup
Reading EEPROM ssid
SSID: 
Reading EEPROM pass
PASS: 
Waiting for Wifi to connect
66666666666663
WiFi connected
192.168.0.4
192.168.4.1
mDNS responder started
Server started

What might be the reason ?

the code in void loop() does not get executed

your sketch works perfectly. It connects to my wifi router and when i connect with the browser it gives "Hello from ESP8266". But when i try to code in the void loop() it does not get executed.

Please help

Thanks

Hangs after 'Waiting for Wifi to connect'

Hi,

cool idea! Thanks for your work.
I try to test and improve this, but i got errors at the first place. My Console shows this before it hang's

    Startup
    Reading EEPROM ssid
    SSID: ��������������������������������
    Reading EEPROM pass
    PASS:     ����������������������������������������������������������������
    Waiting for Wifi to connect

Any idea why? I can not connect.

Error setting up MDNS responder!

as it is clear regarding the problem! kindly help me figure it out where it went wrong with code. I'm using esp8266 12 node mcu v0.9

Integrate CaptivePortal

It would be nice that if the AP is opened, all requests to all URLs would get redirected to the configuration page. See the CaptivePortal example:

#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>

const byte DNS_PORT = 53;
IPAddress apIP(192, 168, 1, 1);
DNSServer dnsServer;
ESP8266WebServer webServer(80);

String responseHTML = ""
  "<!DOCTYPE html><html><head><title>CaptivePortal</title></head><body>"
  "<h1>Hello World!</h1><p>This is a captive portal example. All requests will "
  "be redirected here.</p></body></html>";

void setup() {
  WiFi.mode(WIFI_AP);
  WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
  WiFi.softAP("DNSServer CaptivePortal example");

  // if DNSServer is started with "*" for domain name, it will reply with
  // provided IP to all DNS request
  dnsServer.start(DNS_PORT, "*", apIP);

  // replay to all requests with same HTML
  webServer.onNotFound([]() {
    webServer.send(200, "text/html", responseHTML);
  });
  webServer.begin();
}

void loop() {
  dnsServer.processNextRequest();
  webServer.handleClient();
}

ESP8266 is not showing AP name in laptop if my home router is switched off

Hello,

My code is working fine when my home router is Power ON. I am able to connect my laptop to wifi AP Name "HelloAP" as I have configured WiFi.softAP("HelloAP");

but when my router is switched off, I have one problem in which my laptop is not showing name "Hello AP" and same problem in mobile.

So which type of configuration required when router is OFF?

special chars in formular

Hi,

I am trying this code and it's great, but I have problem while saving password with special chars, eg "!" is being saved as three chars: %21

I am wondering if it can be easily patched, or just how to change GET method to POST...

Issue with launchWeb function

Hi
I had a problem with an error.
When starting the ESP for the first time, it should open the Access Point, and consequently the mDNS should be configured to run using the WiFi.softApIp, not the WiFi.localIp, as you do within your code.
This generated an error and did not started the web server.
Here is how I tried to fix the function.

void launchWeb(int webtype) {
    Serial.println("");
    Serial.println("WiFi connected");
    Serial.println(WiFi.localIP());
     Serial.println(WiFi.softAPIP());
     IPAddress ip2BeUsed;
    if(webtype==1) {
        ip2BeUsed = WiFi.softAPIP();
    } else {
        ip2BeUsed = WiFi.localIP();
    }
    if (!mdns.begin("esp8266", ip2BeUsed)) {
        Serial.println("Error setting up MDNS responder!");
        while(1) { 
            delay(1000);
        }
    }
    Serial.println("mDNS responder started");
    // Start the server
    server.begin();
    Serial.println("Server started");   
    int b = 20;
    int c = 0;
    while(b == 20) { 
        b = mdns1(webtype);
    }
}

I hope it helps
Thanks for your great work
Pierluigi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.