Embedded Wireless Framework
Macros | Functions
ewf_adapter_api_mqtt_basic.c File Reference

The Embedded Wireless Framework MQTT basic API. More...

#include "ewf_adapter.h"

Macros

#define EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_POINTER(adapter_ptr)
 
#define EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_FUNCTION_POINTER(adapter_ptr, function_ptr)
 

Functions

ewf_result ewf_adapter_mqtt_basic_state_callback_set (ewf_adapter *adapter_ptr, ewf_adapter_mqtt_basic_state_callback callback)
 
ewf_result ewf_adapter_mqtt_basic_message_callback_set (ewf_adapter *adapter_ptr, ewf_adapter_mqtt_basic_message_callback callback)
 
ewf_result ewf_adapter_mqtt_basic_control (ewf_adapter *adapter_ptr, const char *command_cstr, uint8_t *buffer_ptr, uint32_t *buffer_length_ptr)
 
ewf_result ewf_adapter_mqtt_basic_connect (ewf_adapter *adapter_ptr, char const *server_cstr, uint32_t port, char const *clientid_cstr, char const *username_cstr, char const *password_cstr)
 
ewf_result ewf_adapter_mqtt_basic_disconnect (ewf_adapter *adapter_ptr)
 
ewf_result ewf_adapter_mqtt_basic_subscribe (ewf_adapter *adapter_ptr, char const *topic_cstr)
 
ewf_result ewf_adapter_mqtt_basic_unsubscribe (ewf_adapter *adapter_ptr, char const *topic_cstr)
 
ewf_result ewf_adapter_mqtt_basic_publish (ewf_adapter *adapter_ptr, const char *topic_cstr, const char *message_cstr)
 
ewf_result ewf_adapter_mqtt_basic_message_get (ewf_adapter *adapter_ptr, const char *topic_cstr, char *message_buffer_ptr)
 

Detailed Description

The Embedded Wireless Framework MQTT basic API.

Version
Preview

Macro Definition Documentation

◆ EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_FUNCTION_POINTER

#define EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_FUNCTION_POINTER (   adapter_ptr,
  function_ptr 
)
Value:
do { \
if ((adapter_ptr->mqtt_basic_api_ptr == NULL) || \
(adapter_ptr->mqtt_basic_api_ptr->function_ptr == NULL)) \
{ \
EWF_LOG_ERROR("The function is not implemented."); \
} \
} while(0)
@ EWF_RESULT_NOT_SUPPORTED
Definition: ewf.h:71

◆ EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_POINTER

#define EWF_ADAPTER_VALIDATE_MQTT_BASIC_API_POINTER (   adapter_ptr)
Value:
do { \
if ((adapter_ptr->mqtt_basic_api_ptr == NULL)) \
{ \
EWF_LOG_ERROR("The API is not implemented."); \
} \
} while(0)