I am trying to implement a simple service on Windows, using this sample:
https://github.com/grishka/NearDrop/issues/154
However, there are 2 issues:
- While the code runs, I don’t actually see any new device being advertised
- Whenever I try to set the advertisement name e.g.
advertisement.LocalName = "MyDevice"
, thepublisher.start()
code fails withValue does not fall within the expected range
- The serviceData bytes – I don’t know what to make of it. I looked in the bluetooth specs, read the SDK specs, but cannot figure out the format of this byte array.
Any idea how to set this up correctly so that I can advertise my service UUID and a custom local name?
1