search

Home  >  Q&A  >  body text

objective-c - iOS如何通过蓝牙向外设发送byte数组

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

iOS 用蓝牙向外设写数据 发送的类型只用data 但是外设只能通过蓝牙接受byte数组。。改怎么办。。。

高洛峰高洛峰2757 days ago604

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