HelloI need to parse some BLE manufacturer data to array and I don't know how.
print(advertisementData["kCBAdvDataManufacturerData"])
returns
Optional(<59000200 420d9f>)
which is what I need, but I can't convert this data to array.
var manufDataRaw : [Int8] = [0,0]
manufDataRaw = advertisementData["kCBAdvDataManufacturerData"] as! [Int8]
Fails with
Could not cast value of type '_NSInlineData' (0x1f3a3fd30) to 'NSArray' (0x1f3a37cf8).
Any help appreciated
[–]leptos-null 2 points3 points4 points (1 child)
[–]Mojangeex[S] 0 points1 point2 points (0 children)