What code are you using to connect to wifi ? also, what code to setup as AP ?
What code are you using to connect to wifi ? also, what code to setup as AP ?
Explore... Chat... Share...
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete
String inputString3 = ""; // a string to hold incoming data
boolean stringComplete3 = false; // whether the string is complete
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial3.begin(9600);
Serial.println("hi there ...");
}
void loop() {
if (stringComplete) {
Serial.print("Serial input:");
Serial.println(inputString);
Serial.println("-----------");
Serial3.print(inputString);
Serial3.print("\n");
inputString = "";
stringComplete = false;
}
if (stringComplete3) {
Serial.print("S3 IN>>");
Serial.println(inputString3);
inputString3 = "";
stringComplete3 = false;
}
serialEvent();
serial3Event();
}
void serialEvent() {
while (Serial.available()) {
char inChar = (char)Serial.read();
if (inChar == '\n') {
stringComplete = true;
}else inputString += inChar;
}
}
void serial3Event() {
while (Serial3.available()) {
char inChar = (char)Serial3.read();
if (inChar == '\n') {
stringComplete3 = true;
}else inputString3 += inChar;
}
}
hi there ...
Serial input:AT
-----------
S3 IN>>AT
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]