1 (edited by Mak 2018-05-14 17:06:28)

Topic: Disconnect a client

Hello all,
I am using a Wemos D1 as a wifi access point. I have noticed that only 1 client is allowed to connect and control the device so i need to know if there is a way to disconnect a client by code after a certain time of connectivity so that another client can connect.
Note that I don't want to restart the module or restart the wifi. I just want to close the active session of the connected client.

2 (edited by Guillaume 2018-05-15 11:50:02)

Re: Disconnect a client

Hello smile

If you stop calling RemoteXY_Handler() for a few seconds, the client will be kicked.

You can create multiple RemoteXY instances, and they can even share the same array. See here for an example: http://forum.remotexy.com/viewtopic.php?id=15


Re: Disconnect a client

hi Guillaume,
Thank you for your response, i have tried your suggestion and set a delay of 7 seconds in my main thread. After that, the client gets kicked out. I was hoping to find a way to instantly kick the client out without waiting but this will do for now.
Thank you again for your help smile