[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? . .
漂亮男人2017-05-02 09:38:21
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