【发布时间】:2015-02-23 01:31:57
【问题描述】:
我能够从外围设备中检索值作为十六进制值,我需要根据我的要求进行转换。[24/12/14 11:37:00 am] sonali_phatak:我可以看到我收到了正确的响应。来自 01117100352e36302e313100000000e55a
01 - 01-start byte
11 - 17(Dec) - length of responce packet
71 - response ID
00 - Ignore this byte
So now out of total length 17, first 4 bytes are header, last 2 bytes are CRC. We
need to read remaining 11 bytes and convert them to ASCII.
35 - 5
2e - .
36 - 6
30 - 0
2e - .
31 - 1
31 - 1
So Iam getting version number from watch as 5.60.11
但我需要在字符串中显示上述值 5.60.11 并在控制台中打印。如何转换它请帮助我
【问题讨论】:
标签: ios objective-c hex ascii core-bluetooth