dotnet-ble-server icon indicating copy to clipboard operation
dotnet-ble-server copied to clipboard

[BUG]

Open Olloxan opened this issue 3 years ago • 0 comments

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);

Olloxan avatar Dec 01 '21 16:12 Olloxan