Smart config

group ESP_SMART

SMART function on ESP device.

Functions

espr_t esp_smart_configure(uint8_t en, const esp_api_cmd_evt_fn evt_fn, void *const evt_arg, const uint32_t blocking)

Configure SMART function on ESP device.

Return

espOK on success, member of espr_t enumeration otherwise

Parameters
  • [in] en: Set to 1 to start SMART or 0 to stop SMART

  • [in] evt_fn: Callback function called when command has finished. Set to NULL when not used

  • [in] evt_arg: Custom argument for event callback function

  • [in] blocking: Status whether command should be blocking or not