-
Hi, I thought that I could just do:
and then just leave rust make it cleanup work but I am not sure if it is OK. Do I need to drop() all handlers before powering down?
which leads me to think that powering the adapter down and let rust do its work maybe is not OK? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
BlueR itself is not doing any cleanup when you power down the adapter. It just sends the power down request to I am not aware of any explicit requirements to remove advertisements before powering down the adapter or quitting the program. In our examples the explicit If your code is working fine, I would not worry about the cleanup sequence. |
Beta Was this translation helpful? Give feedback.
BlueR itself is not doing any cleanup when you power down the adapter. It just sends the power down request to
bluetoothd
.I am not aware of any explicit requirements to remove advertisements before powering down the adapter or quitting the program. In our examples the explicit
drop
is there to test that BlueR properly unregisters dropped objects. However, as a system servicebluetoothd
is expected to clean up after programs that just exit.If your code is working fine, I would not worry about the cleanup sequence.