Cannot power on adapter but can power off
I've got code that toggles the power on the Bluetooth adapter(s). Using D-Feet, I've monitored the power state and it seems that bluez.dart does not power on the adapter. There's no exceptions printed, just that the Powered property for the object in DBus does not change from false to true. My code is available here if that's necessary to look at. Here are the lines that are in question.
Can you try setting this from the command line and confirm that works where dbus.dart doesn't?
gdbus call --system --dest org.bluez --object-path /org/bluez/hci0 --method org.freedesktop.DBus.Properties.Set 'org.bluez.Adapter1' 'Powered' '<true>'
@robert-ancell Doesn't work, only works in bluetoothctl.
@RossComputerGuy can you try bluez.dart 0.5.0 - I've replaced the properties with async methods. The existing code should still have sent the request to the server but you wouldn't be sure when that completed and would have let a risk that the client was removed before that was completed.
It is weird the example code isn't working for you - it definitely is changing the powered property as read in D-Feet for me here.
current using bluez: ^0.7.4 And I can power on and off
https://user-images.githubusercontent.com/15329494/155120678-f954e129-b4eb-4991-a956-4f0bf9fd704f.mp4
So this issue is not happening for me
@Feichtmeier your video isn't showing up, looks like its corrupted.

@RossComputerGuy sorry, sometimes mp4s crash on upload. This is converted to gif and should work for you code is here https://github.com/Feichtmeier/settings/tree/master/lib/view/pages/bluetooth