简体   繁体   中英

How to change CBAdvertisementDataLocalNameKey value from objective C?

I have multiple accelerometer sensors and I need to update the advertisementData name (CBAdvertisementDataLocalNameKey) of the each sensors for the first time of starting to use that sensors. What is the best way to update that from iOS (Objective-C or Swift) app?

You cannot control this data from your app as this data arrives directly "as is" from the remote BLE device. In this case, this is the name of the device that you are scanning for. Have a look at this:-

The only way you can actually change this is if you have access to the accelerometer sensors' source code, and then changing the name will be dependent on the specific software running on these sensors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM