pub unsafe extern "C" fn protocomm_ble_start(
    pc: *mut protocomm_t,
    config: *const protocomm_ble_config_t
) -> esp_err_t
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