mirror of
https://gitlab.com/fabinfra/fabhardware/fabmeter.git
synced 2025-03-12 22:51:44 +01:00
23 lines
595 B
C
23 lines
595 B
C
|
#pragma once
|
||
|
|
||
|
#include <esp_event.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/*
|
||
|
* @brief Event handler registered to receive MQTT events
|
||
|
*
|
||
|
* This function is called by the MQTT client event loop.
|
||
|
*
|
||
|
* @param handler_args user data registered to the event.
|
||
|
* @param base Event base for the handler(always MQTT Base in this example).
|
||
|
* @param event_id The id for the received event.
|
||
|
* @param event_data The data for the event, esp_mqtt_event_handle_t.
|
||
|
*/
|
||
|
void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|