is a user connected "True/False"

Jbjbbuhl123
Posts: 2
Joined: Tue Jun 23, 2020 6:23 pm

is a user connected "True/False"

Postby Jbjbbuhl123 » Tue Jun 23, 2020 6:27 pm

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?

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: is a user connected "True/False"

Postby ESP_Sprite » Wed Jun 24, 2020 11:48 am

Is a user connected to what? Http, tcp, WiFi, BT, BTLE, BT-Serial, USB, physically to the devboard using a rope?

Jbjbbuhl123
Posts: 2
Joined: Tue Jun 23, 2020 6:23 pm

Re: is a user connected "True/False"

Postby Jbjbbuhl123 » Wed Jun 24, 2020 1:08 pm

connected to acces point

ESP_Sprite
Posts: 9739
Joined: Thu Nov 26, 2015 4:08 am

Re: is a user connected "True/False"

Postby ESP_Sprite » Wed Jun 24, 2020 6:33 pm

Gotcha. You can probably use esp_wifi_ap_get_sta_list for that, just return false if there are zero clients connected.

Who is online

Users browsing this forum: Google [Bot] and 71 guests