Post

Replies

Boosts

Views

Activity

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