ESP32 Native version of Blinky, featureful controller code for WS2811/WS2812/NeoPixels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
395B

  1. #pragma once
  2. #include <mqtt_client.h>
  3. typedef void (*mqtt_connect_handler)(
  4. esp_mqtt_client_handle_t, void*
  5. );
  6. typedef void (*mqtt_message_handler)(
  7. esp_mqtt_client_handle_t, esp_mqtt_event_handle_t, void*
  8. );
  9. esp_mqtt_client_handle_t start_mqtt_client(
  10. mqtt_connect_handler, mqtt_message_handler, void*
  11. );
  12. void stop_mqtt_client(esp_mqtt_client_handle_t);