This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to update BLE device name in ios swift !

I would like to update ble device name from device1 to user2. How i can do this in swift language . i m atrung to update by ios app.

is below way is right? but not able to update

let hexData = "user2"?.dataFromHexString()

peripheral.writeValue(data, forCharacteristic: characteric, type: CBCharacteristicWriteType.WithResponse)

Parents
  • not really - he's asking about swift syntax to do something. This isn't a swift support forum. If he was asking about what characteristic one might write to to change the name then it would be a slightly more relevant question which could be answered.

    or put another way ... it's not a terribly good question which leaves far too much unspecified like ... for instance ... what 'characteristic' is.

Reply
  • not really - he's asking about swift syntax to do something. This isn't a swift support forum. If he was asking about what characteristic one might write to to change the name then it would be a slightly more relevant question which could be answered.

    or put another way ... it's not a terribly good question which leaves far too much unspecified like ... for instance ... what 'characteristic' is.

Children
No Data
Related