Skip to content

Commit c79ffd1

Browse files
add nonscannable connectable type
1 parent f8dc035 commit c79ffd1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

features/FEATURE_BLE/ble/gap/Types.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,19 @@ struct advertising_type_t : SafeEnum<advertising_type_t, uint8_t> {
183183
*/
184184
CONNECTABLE_DIRECTED_LOW_DUTY = 0x04,
185185

186+
/**
187+
* Device is connectable, but not scannable and doesn't expect connection from a specific peer.
188+
*/
189+
CONNECTABLE_NON_SCANNABLE_UNDIRECTED = 0x05,
190+
186191
#if !defined(DOXYGEN_ONLY)
187192
// used by the PAL; naming in line with the the spec.
188193
ADV_IND = 0x00,
189194
ADV_DIRECT_IND = 0x01,
190195
ADV_SCAN_IND = 0x02,
191196
ADV_NONCONN_IND = 0x03,
192-
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04
197+
ADV_DIRECT_IND_LOW_DUTY_CYCLE = 0x04,
198+
ADV_NONSCAN_IND = 0x05
193199
#endif
194200
};
195201

features/FEATURE_BLE/ble/pal/GapTypes.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ struct advertising_event_properties_t {
446446
break;
447447
case advertising_type_t::ADV_NONCONN_IND:
448448
break;
449+
case advertising_type_t::ADV_NONSCAN_IND:
450+
connectable = true;
451+
break;
449452
}
450453
}
451454

0 commit comments

Comments
 (0)