Post

Replies

Boosts

Views

Activity

Reply to Convert key data to string or json?
That gives me nothing that I can see. I'm trying to connect a raspberry pi 4. I think I have it connected in the bluetooth of the device. Now I am running the bluetooth scan for peripherals in my app and trying to find it. I have two devices that I cannot tell what they are so I need to read the manufacturer data and I can't. I've been able to take the nsinlinedata before and convert it to json but that was years ago and cannot find my code.
Apr ’20
Reply to Understanding NSData?!?!?!?
The first part from line 1 to 20 is to create the 0x082C, now that I see how it reads. But the value is 0x2c08. So how do I get the flags data if the first and second bit are swapped? How do I create the flags correctly to then read them? NSData *data = [characteristic value]; const uint8_t *byteData = [data bytes]; uint16_t flags = byteData[0]; I appreciate your help!
Nov ’20