HAMQTT 0.1.0
ESP-IDF component for integrating devices with Home Assistant over MQTT
Loading...
Searching...
No Matches
hamqtt_button.h File Reference

HAMQTT Button component interface for Home Assistant MQTT discovery. More...

#include "common.h"

Go to the source code of this file.

Classes

struct  HAMQTT_Button_Config
 Configuration parameters for a HAMQTT button. More...

Typedefs

typedef struct HAMQTT_Button HAMQTT_Button
typedef void(* HAMQTT_Button_On_Press_Func) (void *args)
 Function pointer type for receiving button press events.

Detailed Description

HAMQTT Button component interface for Home Assistant MQTT discovery.

Declares the interface and configuration for button components within the HAMQTT MQTT integration framework for Home Assistant.

Author
Ethan Barnes
Date
2025

Typedef Documentation

◆ HAMQTT_Button_On_Press_Func

typedef void(* HAMQTT_Button_On_Press_Func) (void *args)

Function pointer type for receiving button press events.

This function pointer is called every the button is pressed.

Parameters
argsA pointer to user-defined arguments or context data required to handle the button press. This is typically a pointer to the button-specific data structure.