Hello,
I recently received and built a WiFi-themed kit from HackerBoxes, specifically box #0042: Worlds of WiFi. While I was able to build and program the main project, I've been having some trouble trying to do other things with the module.
Specifically, I'm trying to create a soft AP with the ESP8266-03 module that I can connect to with my smartphone or laptop, and from there maybe come up with some sort of IoT application. Simple enough, although I am either entirely unable to detect the soft AP or, if I am able to detect the AP and connect, I am only able to stay connected for a short amount of time. Sometimes I'm able to detect the network on my iphone, but it tells me I am entering the incorrect password (even when I enter the exact password I previously programmed).
Here is the code I am using in the Arduino IDE, taken from here.
Here is a link to the HackerBox instructable outlining the project hardware.
Any suggestions/comments are appreciated, as I am a beginner and trying to learn all that I can.
I recently received and built a WiFi-themed kit from HackerBoxes, specifically box #0042: Worlds of WiFi. While I was able to build and program the main project, I've been having some trouble trying to do other things with the module.
Specifically, I'm trying to create a soft AP with the ESP8266-03 module that I can connect to with my smartphone or laptop, and from there maybe come up with some sort of IoT application. Simple enough, although I am either entirely unable to detect the soft AP or, if I am able to detect the AP and connect, I am only able to stay connected for a short amount of time. Sometimes I'm able to detect the network on my iphone, but it tells me I am entering the incorrect password (even when I enter the exact password I previously programmed).
Here is the code I am using in the Arduino IDE, taken from here.
Code:
#include <ESP8266WiFi.h> // Include the Wi-Fi library
const char *ssid = "ESP8266 Access Point"; // The name of the Wi-Fi network that will be created
const char *password = "thereisnospoon"; // The password required to connect to it, leave blank for an open network
void setup() {
Serial.begin(115200);
delay(10);
Serial.println('\n');
WiFi.softAP(ssid, password); // Start the access point
Serial.print("Access Point \"");
Serial.print(ssid);
Serial.println("\" started");
Serial.print("IP address:\t");
Serial.println(WiFi.softAPIP()); // Send the IP address of the ESP8266 to the computer
}
void loop() { }
Any suggestions/comments are appreciated, as I am a beginner and trying to learn all that I can.