Page 1 of 1

is a user connected "True/False"

Posted: Tue Jun 23, 2020 6:27 pm
by Jbjbbuhl123
i have in the past few days tried to search to find a simple command that will check if a user is connected and output to a bool on esp32/arduino. is there such command?

Re: is a user connected "True/False"

Posted: Wed Jun 24, 2020 11:48 am
by ESP_Sprite
Is a user connected to what? Http, tcp, WiFi, BT, BTLE, BT-Serial, USB, physically to the devboard using a rope?

Re: is a user connected "True/False"

Posted: Wed Jun 24, 2020 1:08 pm
by Jbjbbuhl123
connected to acces point

Re: is a user connected "True/False"

Posted: Wed Jun 24, 2020 6:33 pm
by ESP_Sprite
Gotcha. You can probably use esp_wifi_ap_get_sta_list for that, just return false if there are zero clients connected.