ios - CoreBluetooth - Generic Access (1800) for a Peripherial implemented on iPhone? -


i'm implemening peripherial role in ios app , able succesfully configure custom service being advertised , can accessed.

now looks cannot change generic acccess profile values, device name - adding cbmutableservice configured "1800" in scan list still see "generic phone" value.

is there way change it?

your service isn't own peripheral. it's part of shared peripheral whole device (phone). don't directly control gap, provide services.

that said, setting advertisement name of peripheral while you're in control straightforward. pass cbadvertisementdatalocalnamekey in startadvertising dictionary:

[self.peripheralmanager startadvertising:@{     cbadvertisementdataserviceuuidskey : @[[cbuuid uuidwithstring:my_service_uuid]],     cbadvertisementdatalocalnamekey : @"mydevice" }]; 

note things can control local name , service uuids. can't set things manufacturer data, transmit power, etc.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -