...
...
...
...
...
...
#define _NXD_MQTT_CLIENT_H_
#include "nx_api.h"
#include "nx_secure_tls_api.h"
#include "nx_cloud.h"
#define NXD_MQTT_SECURE_MEMCPY
#define NXD_MQTT_SECURE_MEMCMP
#define NXD_MQTT_SECURE_MEMSET
#define NXD_MQTT_SECURE_MEMMOVE
#define NXD_MQTT_PORT
#define NXD_MQTT_CLIENT_SOCKET_WINDOW_SIZE
#define NXD_MQTT_CLIENT_THREAD_TIME_SLICE
#define NXD_MQTT_KEEPALIVE_TIMER_RATE
#define NXD_MQTT_PING_TIMEOUT_DELAY
#define NXD_MQTT_MAX_TOPIC_NAME_LENGTH
#define NXD_MQTT_MAX_MESSAGE_LENGTH
#define NXD_MQTT_INITIAL_PACKET_ID_VALUE
#define NXD_MQTT_SOCKET_TIMEOUT
#define NXD_MQTT_TLS_PORT
#define MQTT_PROTOCOL_LEVEL
#define MQTT_CONNECT_FLAGS_USERNAME
#define MQTT_CONNECT_FLAGS_PASSWORD
#define MQTT_CONNECT_FLAGS_WILL_RETAIN
#define MQTT_CONNECT_FLAGS_WILL_QOS_0
#define MQTT_CONNECT_FLAGS_WILL_QOS_1
#define MQTT_CONNECT_FLAGS_WILL_QOS_2
#define MQTT_CONNECT_FLAGS_WILL_FLAG
#define MQTT_CONNECT_FLAGS_CLEAN_SESSION
#define MQTT_CONNECT_FLAGS_WILL_QOS_FIELD
#define MQTT_CONNACK_CONNECT_FLAGS_SP
#define MQTT_CONNACK_CONNECT_RETURN_CODE_ACCEPTED
#define MQTT_CONNACK_CONNECT_RETURN_CODE_UNACCEPTABLE_PROTOCOL_VERSION
#define MQTT_CONNACK_CONNECT_RETURN_CODE_IDENTIFIER_REJECTED
#define MQTT_CONNACK_CONNECT_RETURN_CODE_SERVER_UNAVAILABLE
#define MQTT_CONNACK_CONNECT_RETURN_CODE_BAD_USERNAME_PASSWORD
#define MQTT_CONNACK_CONNECT_RETURN_CODE_NOT_AUTHORIZED
#define MQTT_PUBLISH_DUP_FLAG
#define MQTT_PUBLISH_QOS_LEVEL_0
#define MQTT_PUBLISH_QOS_LEVEL_1
#define MQTT_PUBLISH_QOS_LEVEL_2
#define MQTT_PUBLISH_QOS_LEVEL_FIELD
#define MQTT_PUBLISH_RETAIN
#define MQTT_CONTROL_PACKET_TYPE_FIELD
#define MQTT_FIXED_HEADER_SIZE
#define MQTT_CONTROL_PACKET_TYPE_CONNECT
#define MQTT_CONTROL_PACKET_TYPE_CONNACK
#define MQTT_CONTROL_PACKET_TYPE_PUBLISH
#define MQTT_CONTROL_PACKET_TYPE_PUBACK
#define MQTT_CONTROL_PACKET_TYPE_PUBREC
#define MQTT_CONTROL_PACKET_TYPE_PUBREL
#define MQTT_CONTROL_PACKET_TYPE_PUBCOMP
#define MQTT_CONTROL_PACKET_TYPE_SUBSCRIBE
#define MQTT_CONTROL_PACKET_TYPE_SUBACK
#define MQTT_CONTROL_PACKET_TYPE_UNSUBSCRIBE
#define MQTT_CONTROL_PACKET_TYPE_UNSUBACK
#define MQTT_CONTROL_PACKET_TYPE_PINGREQ
#define MQTT_CONTROL_PACKET_TYPE_PINGRESP
#define MQTT_CONTROL_PACKET_TYPE_DISCONNECT
MQTT_PACKET_CONNACK_STRUCT
mqtt_connack_packet_header
mqtt_connack_packet_remaining_length
mqtt_connack_packet_ack_flags
mqtt_connack_packet_return_code
MQTT_PACKET_PUBLISH_STRUCT
mqtt_publish_packet_header
mqtt_publish_packet_remaining_length
MQTT_PACKET_PUBLISH_RESPONSE_STRUCT
mqtt_publish_response_packet_header
mqtt_publish_response_packet_remaining_length
mqtt_publish_response_packet_packet_identifier_msb
mqtt_publish_response_packet_packet_identifier_lsb
MQTT_PACKET_SUBSCRIBE_STRUCT
mqtt_subscribe_packet_header
mqtt_subscribe_packet_remaining_length
mqtt_subscribe_packet_packet_identifier_msb
mqtt_subscribe_packet_packet_identifier_lsb
MQTT_PACKET_PING_STRUCT
mqtt_ping_packet_header
mqtt_ping_packet_remaining_length
MQTT_PACKET_DISCONNECT_STRUCT
mqtt_disconnect_packet_header
mqtt_disconnect_packet_remaining_length
#define NXD_MQTT_CLIENT_ID
#define NXD_MQTT_CLIENT_NONTLS_PORT
#define NXD_MQTT_CLIENT_TLS_PORT
#define NXD_MQTT_CLIENT_STATE_INITIALIZE
#define NXD_MQTT_CLIENT_STATE_IDLE
#define NXD_MQTT_CLIENT_STATE_CONNECTING
#define NXD_MQTT_CLIENT_STATE_CONNECTED
#define NXD_MQTT_SUCCESS
#define NXD_MQTT_ALREADY_CONNECTED
#define NXD_MQTT_NOT_CONNECTED
#define NXD_MQTT_MUTEX_FAILURE
#define NXD_MQTT_INTERNAL_ERROR
#define NXD_MQTT_CONNECT_FAILURE
#define NXD_MQTT_PACKET_POOL_FAILURE
#define NXD_MQTT_COMMUNICATION_FAILURE
#define NXD_MQTT_SERVER_MESSAGE_FAILURE
#define NXD_MQTT_INVALID_PARAMETER
#define NXD_MQTT_NO_MESSAGE
#define NXD_MQTT_PACKET_POOL_EMPTY
#define NXD_MQTT_QOS2_NOT_SUPPORTED
#define NXD_MQTT_INSUFFICIENT_BUFFER_SPACE
#define NXD_MQTT_CLIENT_NOT_RUNNING
#define NXD_MQTT_INVALID_PACKET
#define NXD_MQTT_PARTIAL_PACKET
#define NXD_MQTT_CONNECTING
#define NXD_MQTT_INVALID_STATE
#define NXD_MQTT_ERROR_CONNECT_RETURN_CODE
#define NXD_MQTT_ERROR_UNACCEPTABLE_PROTOCOL
#define NXD_MQTT_ERROR_IDENTIFYIER_REJECTED
#define NXD_MQTT_ERROR_SERVER_UNAVAILABLE
#define NXD_MQTT_ERROR_BAD_USERNAME_PASSWORD
#define NXD_MQTT_ERROR_NOT_AUTHORIZED
NXD_MQTT_CLIENT_STRUCT
nxd_mqtt_client_name
nxd_mqtt_client_id
nxd_mqtt_client_id_length
nxd_mqtt_client_username
nxd_mqtt_client_username_length
nxd_mqtt_client_password
nxd_mqtt_client_password_length
nxd_mqtt_client_will_qos_retain
nxd_mqtt_client_will_topic
nxd_mqtt_client_will_topic_length
nxd_mqtt_client_will_message
nxd_mqtt_client_will_message_length
nxd_mqtt_client_ip_ptr
nxd_mqtt_client_packet_pool_ptr
nxd_mqtt_client_mutex_ptr
nxd_mqtt_timer
nxd_mqtt_protection
nxd_mqtt_thread
nxd_mqtt_events
nxd_mqtt_ping_timeout
nxd_mqtt_ping_not_responded
nxd_mqtt_ping_sent_time
nxd_mqtt_timeout
nxd_mqtt_timer_value
nxd_mqtt_keepalive
nxd_mqtt_clean_session
nxd_mqtt_client_state
nxd_mqtt_client_socket
nxd_mqtt_client_next
nxd_mqtt_client_packet_identifier
nxd_mqtt_client_processing_packet
message_transmit_queue_head
message_transmit_queue_tail
message_receive_queue_head
message_receive_queue_tail
message_receive_queue_depth
nxd_mqtt_client_receive_notify
nxd_mqtt_connect_notify
nxd_mqtt_connect_context
nxd_mqtt_disconnect_notify
nxd_mqtt_packet_receive_notify
nxd_mqtt_packet_receive_context
nxd_mqtt_ack_receive_notify
nxd_mqtt_ack_receive_context
nxd_mqtt_client_use_tls
nxd_mqtt_tls_setup
nxd_mqtt_tls_certificate
nxd_mqtt_tls_trusted_certificate
nxd_mqtt_tls_session
nxd_mqtt_tls_in_progress
#define nxd_mqtt_client_create
#define nxd_mqtt_client_login_set
#define nxd_mqtt_client_will_message_set
#define nxd_mqtt_client_delete
#define nxd_mqtt_client_connect
#define nxd_mqtt_client_secure_connect
#define nxd_mqtt_client_publish
#define nxd_mqtt_client_subscribe
#define nxd_mqtt_client_unsubscribe
#define nxd_mqtt_client_disconnect
#define nxd_mqtt_client_receive_notify_set
#define nxd_mqtt_client_message_get
#define nxd_mqtt_client_disconnect_notify_set
#define nxd_mqtt_client_create
#define nxd_mqtt_client_login_set
#define nxd_mqtt_client_will_message_set
#define nxd_mqtt_client_delete
#define nxd_mqtt_client_connect
#define nxd_mqtt_client_secure_connect
#define nxd_mqtt_client_publish
#define nxd_mqtt_client_subscribe
#define nxd_mqtt_client_unsubscribe
#define nxd_mqtt_client_disconnect
#define nxd_mqtt_client_receive_notify_set
#define nxd_mqtt_client_message_get
#define nxd_mqtt_client_disconnect_notify_set
_nxd_mqtt_client_connect(NXD_MQTT_CLIENT *, NXD_ADDRESS *, UINT, UINT, UINT, ULONG);
_nxd_mqtt_client_create(NXD_MQTT_CLIENT *, CHAR *, CHAR *, UINT, NX_IP *, NX_PACKET_POOL *, void *, ULONG, UINT, void *, ULONG);
_nxd_mqtt_client_delete(NXD_MQTT_CLIENT *);
_nxd_mqtt_client_disconnect(NXD_MQTT_CLIENT *);
_nxd_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *, void (*)(NXD_MQTT_CLIENT *));
_nxd_mqtt_client_login_set(NXD_MQTT_CLIENT *, CHAR *, UINT, CHAR *, UINT);
_nxd_mqtt_client_message_get(NXD_MQTT_CLIENT *, UCHAR *, UINT, UINT *, UCHAR *, UINT, UINT *);
_nxd_mqtt_client_publish_packet_send(NXD_MQTT_CLIENT *, NX_PACKET *, USHORT, UINT, ULONG);
_nxd_mqtt_client_publish(NXD_MQTT_CLIENT *, CHAR *, UINT, CHAR *, UINT, UINT, UINT, ULONG);
_nxd_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *, void (*)(NXD_MQTT_CLIENT *, UINT));
_nxd_mqtt_client_release_callback_set(NXD_MQTT_CLIENT *, void (*)(CHAR *, UINT));
_nxd_mqtt_client_sub_unsub(NXD_MQTT_CLIENT *, UINT, CHAR *, UINT, USHORT *, UINT);
_nxd_mqtt_client_subscribe(NXD_MQTT_CLIENT *, CHAR *, UINT, UINT);
_nxd_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *, CHAR *, UINT);
_nxd_mqtt_client_will_message_set(NXD_MQTT_CLIENT *, const UCHAR *, UINT, const UCHAR *, UINT, UINT, UINT);
_nxd_mqtt_read_remaining_length(NX_PACKET *, UINT *, ULONG *);
_nxd_mqtt_client_set_fixed_header(NXD_MQTT_CLIENT *, NX_PACKET *, UCHAR, UINT, UINT);
_nxd_mqtt_client_append_message(NXD_MQTT_CLIENT *, NX_PACKET *, CHAR *, UINT, ULONG);
_nxd_mqtt_client_connection_end(NXD_MQTT_CLIENT *, ULONG);
_nxd_mqtt_process_publish_packet(NX_PACKET *, ULONG *, USHORT *, ULONG *, ULONG *);
_nxde_mqtt_client_connect(NXD_MQTT_CLIENT *, NXD_ADDRESS *, UINT, UINT, UINT, ULONG);
_nxde_mqtt_client_create(NXD_MQTT_CLIENT *, CHAR *, CHAR *, UINT, NX_IP *, NX_PACKET_POOL *, void *, ULONG, UINT, void *, ULONG);
_nxde_mqtt_client_delete(NXD_MQTT_CLIENT *);
_nxde_mqtt_client_disconnect_notify_set(NXD_MQTT_CLIENT *, void (*)(NXD_MQTT_CLIENT *));
_nxde_mqtt_client_disconnect(NXD_MQTT_CLIENT *);
_nxde_mqtt_client_login_set(NXD_MQTT_CLIENT *, CHAR *, UINT, CHAR *, UINT);
_nxde_mqtt_client_message_get(NXD_MQTT_CLIENT *, UCHAR *, UINT, UINT *, UCHAR *, UINT, UINT *);
_nxde_mqtt_client_publish(NXD_MQTT_CLIENT *, CHAR *, UINT, CHAR *, UINT, UINT, UINT, ULONG);
_nxde_mqtt_client_receive_notify_set(NXD_MQTT_CLIENT *, void (*)(NXD_MQTT_CLIENT *, UINT));
_nxde_mqtt_client_release_callback_set(NXD_MQTT_CLIENT *, void (*)(CHAR *, UINT));
_nxde_mqtt_client_subscribe(NXD_MQTT_CLIENT *, CHAR *, UINT, UINT);
_nxde_mqtt_client_unsubscribe(NXD_MQTT_CLIENT *, CHAR *, UINT);
_nxde_mqtt_client_will_message_set(NXD_MQTT_CLIENT *, const UCHAR *, UINT, const UCHAR *, UINT, UINT, UINT);
_nxd_mqtt_client_secure_connect(NXD_MQTT_CLIENT *, NXD_ADDRESS *, UINT, UINT (*)(NXD_MQTT_CLIENT *, NX_SECURE_TLS_SESSION *, NX_SECURE_X509_CERT *, NX_SECURE_X509_CERT *), UINT, UINT, ULONG);
_nxde_mqtt_client_secure_connect(NXD_MQTT_CLIENT *, NXD_ADDRESS *, UINT, UINT (*)(NXD_MQTT_CLIENT *, NX_SECURE_TLS_SESSION *, NX_SECURE_X509_CERT *, NX_SECURE_X509_CERT *), UINT, UINT, ULONG);