Dwi259eti Firmware Instant

void my_feature_task(void *arg)

while (1) float temp; if (my_feature_get_temperature(&temp) == 0) ESP_LOGI(TAG, "Temp = %.2f°C", temp); // Optionally publish via MQTT vTaskDelay(pdMS_TO_TICKS(10000)); // 10 s interval Dwi259eti Firmware

// registration – called from at_init() void at_register_my_feature(void) void my_feature_task(void *arg) while (1) float temp; if

static void at_cmd_temp_handler(at_cmd_ctx_t *ctx, const char *params) if (my_feature_get_temperature(&temp) == 0) ESP_LOGI(TAG

Add the registration call in the AT subsystem init routine (often at_init.c ). If the feature needs user‑configurable thresholds:

at_register_command("AT+TEMP?", at_cmd_temp_handler, AT_CMD_TYPE_QUERY);