-->
Page 1 of 1

How to check which wifi client is connected.

PostPosted: Thu Oct 15, 2015 5:39 am
by sohialsadiq
Hi,
can anyone help me,How to check which client is connected to WiFi server.

sort of DHCP server, i want to check which device is connected & its mac address.


system runs fine it generate ip address to connected devices.

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);
client.stop();





}

Re: How to check which wifi client is connected.

PostPosted: Thu Oct 15, 2015 11:51 am
by martinayotte
It is not clear from the above post, do you wish to get a list of client connected to TCP server, or only the list of Wifi Station attached to AP ?