mirror of https://github.com/ARMmbed/mbed-os.git
add nonscannable connectable type
parent
f8dc035ae4
commit
c79ffd112f
|
@ -183,13 +183,19 @@ struct advertising_type_t : SafeEnum<advertising_type_t, uint8_t> {
|
|||
*/
|
||||
CONNECTABLE_DIRECTED_LOW_DUTY = 0x04,
|
||||
|
||||
/**
|
||||
* Device is connectable, but not scannable and doesn't expect connection from a specific peer.
|
||||
*/
|
||||
CONNECTABLE_NON_SCANNABLE_UNDIRECTED = 0x05,
|
||||
|
||||
#if !defined(DOXYGEN_ONLY)
|
||||
// used by the PAL; naming in line with the the spec.
|
||||
ADV_IND = 0x00,
|
||||
ADV_DIRECT_IND = 0x01,
|
||||
ADV_SCAN_IND = 0x02,
|
||||
ADV_NONCONN_IND = 0x03,
|
||||
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04
|
||||
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04,
|
||||
ADV_NONSCAN_IND = 0x05
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
@ -446,6 +446,9 @@ struct advertising_event_properties_t {
|
|||
break;
|
||||
case advertising_type_t::ADV_NONCONN_IND:
|
||||
break;
|
||||
case advertising_type_t::ADV_NONSCAN_IND:
|
||||
connectable = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue