ios - CoreBluetooth peripheral identifier changes -


i using corebluetooth connect number of identical bluetooth scales i've developed using bluegiga ble113 modules. app keeps local copy of each scale's cbperipheral.identifier.uuidstring along related data physical scale can tell them apart. e.g. "scale a" , "scale b"

my trouble every device's uuidstring changes. can develop days against device, 1 day uuid different. scale hasn't been reset, app hasn't been restarted , bluetooth hasn't been cycled on phone.

i need way identify each bluetooth peripheral (scale) reliably , i'd rather not have hard code identifiers each device during production.

is there better method of identifying peripherals long-term?

unfortunately, dont think around ios's changing of peripheral uuids.

depending on control have change ble services/characteristics on scales, advertise additional service contains characteristic put custom identifier in.

on ios scan service , read characteristics value identify scale. way, not dependent on uuid os assigns peripherals.

hope helps!


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -