-->
Page 1 of 1

ESP8266-07 not broadcasting a signal

PostPosted: Tue Jan 30, 2018 2:01 pm
by thunderbootyclap
Hello,
I am working on a project using the aforementioned ESP and everything seems to be working great, I can program them, they output to the serial terminal what I tell them to, and the GPIO even blink LEDs.

The problem is that when I set it to be an access point, using example code and my own code, it doesnt output the SSID (I cant find it on the network). I am using the arduino IDE to program it.

Any help would be appreciated.

Re: ESP8266-07 not broadcasting a signal

PostPosted: Thu Feb 01, 2018 8:29 am
by QuickFix
Unfortunately my chrystal ball is in the shop for repair this week: could you post us some code you tried?

You can Always first flash the original AT-code back and control it over serial (setting the mode to AP and entering a SSID) to see if the hardware is in working order.

Re: ESP8266-07 not broadcasting a signal

PostPosted: Thu Feb 01, 2018 9:40 am
by thunderbootyclap
QuickFix wrote:Unfortunately my chrystal ball is in the shop for repair this week: could you post us some code you tried?

You can Always first flash the original AT-code back and control it over serial (setting the mode to AP and entering a SSID) to see if the hardware is in working order.


These are some examples of what ive been uploading to test functionality.
Both are examples in Arduino.

Code: Select all/*
 ESP8266 Blink by Simon Peter
 Blink the blue LED on the ESP-01 module
 This example code is in the public domain
 
 The blue LED on the ESP-01 module is connected to GPIO1
 (which is also the TXD pin; so we cannot use Serial.print() at the same time)
 
 Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/

void setup() {
  pinMode(16, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(16, LOW);   // Turn the LED on (Note that LOW is the voltage level
                                    // but actually the LED is on; this is because
                                    // it is active low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(16, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}


Code: Select all#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();
}