{"id":22284646,"url":"https://github.com/blackspherefollower/gattadvertisementtest","last_synced_at":"2025-03-25T20:19:33.295Z","repository":{"id":213283255,"uuid":"733441564","full_name":"blackspherefollower/GattAdvertisementTest","owner":"blackspherefollower","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-04T09:23:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T17:47:05.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackspherefollower.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-12-19T10:38:01.000Z","updated_at":"2023-12-19T11:23:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f21aeb45-0702-4891-a7c6-8164ef346c6a","html_url":"https://github.com/blackspherefollower/GattAdvertisementTest","commit_stats":null,"previous_names":["blackspherefollower/gattadvertisementtest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackspherefollower%2FGattAdvertisementTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackspherefollower%2FGattAdvertisementTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackspherefollower%2FGattAdvertisementTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackspherefollower%2FGattAdvertisementTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackspherefollower","download_url":"https://codeload.github.com/blackspherefollower/GattAdvertisementTest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245535512,"owners_count":20631298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T16:49:14.616Z","updated_at":"2025-03-25T20:19:33.239Z","avatar_url":"https://github.com/blackspherefollower.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GattAdvertisementTest\n\nThis is a quick test to see if the Bluetooth Advertisement features exposed by the Windows SDK can be used to control MuSe/LoveSpouce/etc devices\n\n## Conclusion\n\nMaybe.\n\nWhilst it is possible to craft and publish the manufacturer data required, the SDK prevents you from changing the flags required to get the devices to read the advertisement as a command.\n\nThis is explicitly called out in https://learn.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.advertisement.bluetoothleadvertisementpublisher.advertisement?view=winrt-22621#windows-devices-bluetooth-advertisement-bluetoothleadvertisementpublisher-advertisement:\n```\nWhen configuring the publisher object, you can't add restricted section types (BluetoothLEAdvertisementPublisher.Advertisement.Flags and BluetoothLEAdvertisementPublisher.Advertisement.LocalName). Trying to set those property values results in a runtime exception. You can still set the manufacturer data section, or any other sections not defined by the list of restrictions.\n```\n\nBut as @arz321 points out here https://github.com/buttplugio/docs.buttplug.io/issues/2#issuecomment-1975239077 it is possible to just pad the manufacturer data to achieve the same end goal.\n\nHowever: I'm seeing it take upwards of 5 seconds for devices to respond when controlled this way.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackspherefollower%2Fgattadvertisementtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackspherefollower%2Fgattadvertisementtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackspherefollower%2Fgattadvertisementtest/lists"}