问题标签 [lgbluetooth]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
674 浏览

ios - CoreBluetooth 读/写数据

我正在使用 iOS 中心与 BLE 外围设备进行通信。

使用 LGBluetooth 框架https://github.com/DavidSahakyan/LGBluetooth

该方法得到

它输出“1234567890”

我需要将 (char *) [data bytes] 转换为 NSInteger。当我得到它

我得到 2013527536,但外围端的值为 1234567890