[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? . .
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