dotnet-ble-server
dotnet-ble-server copied to clipboard
[BUG]
Hi, I am not able to add a dictionary containing manufacturer data into the advertising package, I will get a bluez error when it trys to parse the advertising package. What comes into the dictionary?
public static async Task RegisterSampleAdvertisement(ServerContext serverContext)
{
Dictionary<string, object> dic = new Dictionary<string, object>();
dic.Add("0ffe", ""); // <-- what comes in here?
var advertisementProperties = new AdvertisementProperties
{
Type = "peripheral",
ManufacturerData = dic, // this produces the error when the package is parsed
LocalName = "Hue filament bulb",
};
await new AdvertisingManager(serverContext).CreateAdvertisement(advertisementProperties);