How to change the name of device?
Hello,
I was wondering how to change the name of a device. I've looked at the c++ documentation which led me to trying mbl_mw_settings_set_device_name
but to no avail.
Also, I'm curious as to how the MetaBase app changes the names of the devices as it's possible to create names longer than 8 characters whereas the documentation of mbl_mw_settings_set_device_name
states that name length is capped at 8.
Many Thanks
Comments
https://mbientlab.com/community/discussion/3167/how-to-report-an-issue#latest
Device name refers to the ble advertising name which is limited to 8 characters. MetaBase instead uses the scan response.
Sorry if I'm missing something, but what do you mean about the scan response?
Bluetooth devices send advertising packets to broadcast data, and to allow other devices (scanners) to find and connect to them. The advertising data consists up to 31 bytes of user configurable data. An additional 31 bytes can be sent as a scan response to a scan request.
How do I access and modify the extra 31 bytes sent as a scan response?
https://mbientlab.com/documents/metawear/cpp/0/settings_8h.html#a1d69899ec0851387a9cb9eac3e414c33