9 #ifndef __ewf_adapter_mqtt_basic__h__included__
10 #define __ewf_adapter_mqtt_basic__h__included__
61 ewf_result(*control)(
ewf_adapter* adapter_ptr,
const char* command_cstr, uint8_t* buffer_ptr, uint32_t* buffer_length_ptr);
63 ewf_result(*connect)(
ewf_adapter* adapter_ptr,
char const* server_cstr, uint32_t port,
char const* clientid_cstr,
char const* username_cstr,
char const* password_cstr);
75 ewf_result ewf_adapter_mqtt_basic_control(
ewf_adapter* adapter_ptr,
const char* command_cstr, uint8_t* buffer_ptr, uint32_t* buffer_length_ptr);
77 ewf_result ewf_adapter_mqtt_basic_connect(
ewf_adapter* adapter_ptr,
char const* server_cstr, uint32_t port,
char const* clientid_cstrs,
char const* username_cstr,
char const* password_cstr);
83 ewf_result ewf_adapter_mqtt_basic_publish(
ewf_adapter* adapter_ptr,
const char* topic_cstr,
const char* message_cstr);
85 ewf_result ewf_adapter_mqtt_basic_message_get(
ewf_adapter* adapter_ptr,
const char* topic_cstr,
char* message_buffer_ptr);
The Embedded Wireless Framework.
struct _ewf_adapter_api_mqtt_basic ewf_adapter_api_mqtt_basic
ewf_result(* ewf_adapter_mqtt_basic_message_callback)(ewf_adapter *adapter_ptr, const char *topic_cstr, const char *payload_cstr)
A function pointer type for MQTT basic API message callbacks.
Definition: ewf_adapter_api_mqtt_basic.h:51
ewf_result(* ewf_adapter_mqtt_basic_state_callback)(ewf_adapter *adapter_ptr, const char *state_cstr, const char *param_cstr)
A function pointer type for MQTT basic API state callbacks.
Definition: ewf_adapter_api_mqtt_basic.h:34
enum _ewf_result ewf_result
Success and error result codes specific to the EWF API.
Definition: ewf_adapter_api_mqtt_basic.h:55
The EWF network adapter control structure definition.
Definition: ewf_adapter.h:50
The interface structure definition.
Definition: ewf_interface.h:66