thanks wasnt aware of that. i have modified my ap code to send a dummy message every second. it now works as expected. can i send an empty message though?
i now get horrible delays sometimes when receiving messages on the server. when i dont send a dummy message every second it works just fine ...
Search found 2 matches
- Mon Jul 10, 2017 7:55 pm
- Forum: ESP32 Arduino
- Topic: [Bug?]WiFiClient.connected doesnt notice connection loss.
- Replies: 2
- Views: 6652
- Sun Jul 09, 2017 6:39 pm
- Forum: ESP32 Arduino
- Topic: [Bug?]WiFiClient.connected doesnt notice connection loss.
- Replies: 2
- Views: 6652
[Bug?]WiFiClient.connected doesnt notice connection loss.
as the headline states. WiFiClient.connected doesnt change when the client ESP loses power, or otherwise loses connection.
here is my code https://pastebin.com/0dk6EXyE
connect to port 10000 and send LED(ON); or LED(OFF); to switch pin 2 on and off.
as you see im looping using while(client ...
here is my code https://pastebin.com/0dk6EXyE
connect to port 10000 and send LED(ON); or LED(OFF); to switch pin 2 on and off.
as you see im looping using while(client ...