AT+BLECONN? returns previous connections that aren't active anymore
Posted: Mon Oct 30, 2023 11:04 am
Hi everyone,
Has anyone had the problem of command AT+BLECONN? returning information on once connected devices that are not connected anymore?
I am printing the data that comes after the +BLECONN part and this is approximately what I get ("R:" stands for "received" ):
Only the second device is actually connected.
My device is initiated as a client, it sets its scanning paraemeters, scans for specific devices, connects to them and reads their characteristics and gets notified for some of them, the usual procedure is in all of those.
I am using this command to occassionaly check if all connections are still active, but I see that it creates a problem, since it returns false data, like I said.
Anyone had this experience before? Any feedback would be helpful, thanks.
The most pleasant day to all of you!
Fahira
Has anyone had the problem of command AT+BLECONN? returning information on once connected devices that are not connected anymore?
I am printing the data that comes after the +BLECONN part and this is approximately what I get ("R:" stands for "received" ):
Code: Select all
R: 0,"some-mac"
R: 1,"some-mac"
R: 2,"some-mac"
My device is initiated as a client, it sets its scanning paraemeters, scans for specific devices, connects to them and reads their characteristics and gets notified for some of them, the usual procedure is in all of those.
I am using this command to occassionaly check if all connections are still active, but I see that it creates a problem, since it returns false data, like I said.
Anyone had this experience before? Any feedback would be helpful, thanks.
The most pleasant day to all of you!
Fahira