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

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -

shared memory - gstreamer shmsrc and shmsink with h264 data -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -