search

Home  >  Q&A  >  body text

iOS how to send byte array to peripheral via bluetooth

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

高洛峰高洛峰2840 days ago657

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人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

    reply
    0
  • Cancelreply