ADV_NONCONN_IND advertisement
ADV_NONCONN_IND advertisement
- Subject: ADV_NONCONN_IND advertisement
- From: Dragan Milić via Bluetooth-dev <email@hidden>
- Date: Mon, 22 Jun 2020 17:01:02 +0200
Hi all,
I need my app to send a "non-connectable undirected” (ADV_NONCONN_IND)
advertisement. I see the -[startAdvertsing:] method of CBPeripheralManager
class, but the documentation says only CBAdvertisementDataLocalNameKey and
CBAdvertisementDataServiceUUIDsKey are supported. That seems to imply that
CBAdvertisementDataIsConnectable cannot be set to NO, to simulate
ADV_NONCONN_IND. Hence, it seems the task cannot be accomplished using
CBPeripheralManager.
I also looked into IOBluetooth framework, specifically into
IOBluetoothHostController. And while its public API doesn’t offer anything
useful in this regard, I’ve noticed some private methods with promising names,
namely:
- (int)BluetoothHCILESetAdvertiseEnable:(unsigned char)arg1;
- (int)BluetoothHCILESetAdvertisingData:(unsigned char)arg1
advertsingData:(char *)arg2;
- (int)BluetoothHCILESetAdvertisingParameters:(unsigned short)arg1
advertisingIntervalMax:(unsigned
short)arg2
advertisingType:(unsigned
char)arg3
ownAddressType:(unsigned
char)arg4
directAddressType:(unsigned
char)arg5
directAddress:(struct
BluetoothDeviceAddress *)arg6
advertisingChannelMap:(unsigned char)arg7
advertisingFilterPolicy:(unsigned
char)arg8;
As I’m not restricted to using public APIs only, I wouldn’t mind solving the
problem using private methods. Hence I’d be very thankful if anyone can shed
some light on above mentioned methods, especially the last one. Some parameters
of that method are quite obvious as well as their types (like advertisingType),
but some sounds more obscure.
Thanks in advance.
-- Dragan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden