Another Noob
Posted: Mon Nov 29, 2021 4:32 pm
Hi, I've been lurking and just joined, I'm having a bit of trouble with input on GPIO 6 ,7,8,11 , for some reason it won't connect wifi when I choose those ports and 15 & 16 will allow a wifi connection when set up as input but don't work. Is this a known thing? I'm a 2 year C++ developer with experience programming PIC, and I frequently use SBC's for projects as well.
I'm using:
Linux
ESP12F
Arduino IDE
a programmer, not just a cable
C++ with curl to poll the URL
Any suggestions?
I'm using:
Linux
ESP12F
Arduino IDE
a programmer, not just a cable
C++ with curl to poll the URL
Code: Select all
// Input on GPIO over wifi testing
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
const char *ssid = "ESP12Test";
const char *password = "00000000";
ESP8266WebServer server(80);
// Just a test message. Go to http://192.168.4.1 to see it.
void handleRoot() {
//Do not Remove handleRoot
}
// ESP12F Testing working inputs: 0,1,2,3,4,5,9,10,12,13,14
// ESP12F Tested NOT working inputs 15,16
// ESP12F NOT allowing wifi connection as inputs 6,7,8,11
void setup(){
delay(1000);
Serial.begin(115200);
WiFi.softAP(ssid, password);
IPAddress myIP = WiFi.softAPIP();
server.on("/", handleRoot);
server.begin();
pinMode(1, INPUT_PULLUP);
}
void loop(){
if (digitalRead(1) == HIGH) {
server.handleClient();
server.send(200, "text/html", "1");
}
else {
server.handleClient();
server.send(200, "text/html", "0");
}
}
Any suggestions?