[−][src]Function openthread_sys::otPlatBleGapAdvStart
pub unsafe extern "C" fn otPlatBleGapAdvStart(
aInstance: *mut otInstance,
aInterval: u16,
aType: u8
) -> otError
Starts BLE Advertising procedure.
The BLE device shall use undirected advertising with no filter applied. A single BLE Advertising packet must be sent on all advertising channels (37, 38 and 39).
@note This function shall be used only for BLE Peripheral role.
@param[in] aInstance The OpenThread instance structure. @param[in] aInterval The interval between subsequent advertising packets in OT_BLE_ADV_INTERVAL_UNIT units. Shall be within OT_BLE_ADV_INTERVAL_MIN and OT_BLE_ADV_INTERVAL_MAX range. @param[in] aType The advertisement properties as a bitmask: whether it is connectable | scannable.
@retval ::OT_ERROR_NONE Advertising procedure has been started. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state. @retval ::OT_ERROR_INVALID_ARGS Invalid interval value has been supplied.