Hi @longevity uyl , Welcome to Microsoft Q&A,
Regarding the disconnect callback, you may need to use a similar ConnectionStatusChanged event.
Bluetooth disconnect callbacks can be implemented using the Windows.Devices.Bluetooth namespace in UWP (Universal Windows Platform) applications. Use the event ConnectionStatusChanged to register connection status changes.
I am not a professional on UWP. If you need to ask about UWP related issues, you need to create a question with UWP tag.
The official documentation about Bluetooth Callbacks is: https://learn.microsoft.com/en-us/windows/win32/bluetooth/bluetooth-callbacks .
There is an example of how to use Windows Sockets for Bluetooth connectivity: his section describes how to use the Windows Sockets interface with Bluetooth functionality introduced in Windows Vista. For more details on the APIs that make this possible, seeBluetooth Programming with Windows Sockets and the Bluetooth connection sample
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.