Dwi259eti — Firmware
nvs_handle_t h; ESP_ERROR_CHECK(nvs_open("my_feat", NVS_READWRITE, &h)); ESP_ERROR_CHECK(nvs_set_blob(h, "threshold", &thr, sizeof(thr))); ESP_ERROR_CHECK(nvs_commit(h)); nvs_close(h); return ESP_OK;
void my_feature_task(void *arg)
Add the registration call in the AT subsystem init routine (often at_init.c ). If the feature needs user‑configurable thresholds: Dwi259eti Firmware
static const char *TAG = "my_feature";
/* Example: read a temperature sensor on I2C address 0x48 */ int my_feature_get_temperature(float *temp_c) raw[1]; *temp_c = raw_temp / 256.0f; return 0; *temp_c = raw_temp / 256.0f
