kevincar / bless

Cross-platform Bluetooth Low Energy Server Python Library
MIT License
78 stars 26 forks source link

Setting name_overwrite=True causes permissions error #117

Open edcloudcycle opened 8 months ago

edcloudcycle commented 8 months ago

Hi all, Just trying out the library to see if I can use it to simulate one of our devices for testing. To do that it needs to pretend to be that device by having the same name, however setting name_overwrite=True causes a PermissionError: [WinError 5] Access is denied.

I can see there are a lot of other services available on the BLE, many from Windows providing mobile phone connection options. I guess those services don't want me changing the name. Maybe they need to be disabled or maybe I am better of with a USB BLE dongle that won't have anything else trying to use it.

All suggestions very welcome.

Thanks

Ed

edcloudcycle commented 8 months ago

If I turn off Bluetooth in Windows I can see there is a radio_not_present error inside the service provider object so I need a more subtle tool. :)