Function esp_idf_svc::sys::protocomm_ble_start
source ยท pub unsafe extern "C" fn protocomm_ble_start(
pc: *mut protocomm,
config: *const protocomm_ble_config,
) -> i32
Expand description
@brief Start Bluetooth Low Energy based transport layer for provisioning
Initialize and start required BLE service for provisioning. This includes the initialization for characteristics/service for BLE.
@param[in] pc Protocomm instance pointer obtained from protocomm_new() @param[in] config Pointer to config structure for initializing BLE
@return
- ESP_OK : Success
- ESP_FAIL : Simple BLE start error
- ESP_ERR_NO_MEM : Error allocating memory for internal resources
- ESP_ERR_INVALID_STATE : Error in ble config
- ESP_ERR_INVALID_ARG : Null arguments