-->
Page 1 of 1

Web server with client discoonect after 10min

PostPosted: Sun Oct 04, 2015 6:02 pm
by sohialsadiq
i am using this code for nodemcu in AP mode to transfer data. on client side i develop android apps to send & received data. i am facing a problem after 7 to 10min.Hauwei mobile phone wireless drop the network & give network access denied error.

if connect other HTC or Samsung mobile i get connection connected with ip address 192.168.4.3 & Apps runs smoothly & don't give any error.

but first mobile Hauwei stills give network access denied error & i have to Reset nodemcu to connect it, but after 5 to 10 min get same error access denied. but HTC or Samsung mob works fine.



my code is

void wifi_data()

{


WiFiClient client = server.available(); // Wait for a new client



data =client.readStringUntil('\n');
Serial.print("data is =");
Serial.println(data);

client.println(temp);
client.println(hum);
client.println(Motion);


client.println(timer_status);
client.println(pin_data);
pin_data="";
Serial.print("timer_status");
Serial.println(timer_status);





}