iOS how to send byte array to peripheral via bluetooth
高洛峰
高洛峰 2017-05-02 09:36:21
0
1
635

[self.peripheral writeValue:data forCharacteristic:self.writeCharacteristic type:CBCharacteristicWriteWithResponse];

iOS uses Bluetooth to write data to peripherals. The type sent is only data, but the peripheral can only accept byte arrays through Bluetooth. . What should I do if I change it? . .

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
漂亮男人

No need to do anything, the middle is all bit stream, no matter what you send to the other side, it will become a byte array

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template