mikroSDK Reference Manual
mqtt_sn_debug.h
Go to the documentation of this file.
1
31#ifndef _MQTT_SN_DEBUG_H
32#define _MQTT_SN_DEBUG_H
33
34//Dependencies
35#include "core/net.h"
37
38//C++ guard
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43//MQTT-SN related functions
44error_t mqttSnDumpMessage(const uint8_t *message, size_t length);
45
46error_t mqttSnDumpAdvertise(const MqttSnAdvertise *message, size_t length);
47error_t mqttSnDumpSearchGw(const MqttSnSearchGw *message, size_t length);
48error_t mqttSnDumpGwInfo(const MqttSnGwInfo *message, size_t length);
49error_t mqttSnDumpConnect(const MqttSnConnect *message, size_t length);
50error_t mqttSnDumpConnAck(const MqttSnConnAck *message, size_t length);
51error_t mqttSnDumpWillTopicReq(const MqttSnWillTopicReq *message, size_t length);
52error_t mqttSnDumpWillTopic(const MqttSnWillTopic *message, size_t length);
53error_t mqttSnDumpWillMsgReq(const MqttSnWillMsgReq *message, size_t length);
54error_t mqttSnDumpWillMsg(const MqttSnWillMsg *message, size_t length);
55error_t mqttSnDumpRegister(const MqttSnRegister *message, size_t length);
56error_t mqttSnDumpRegAck(const MqttSnRegAck *message, size_t length);
57error_t mqttSnDumpPublish(const MqttSnPublish *message, size_t length);
58error_t mqttSnDumpPubAck(const MqttSnPubAck *message, size_t length);
59error_t mqttSnDumpPubRec(const MqttSnPubRec *message, size_t length);
60error_t mqttSnDumpPubRel(const MqttSnPubRel *message, size_t length);
61error_t mqttSnDumpPubComp(const MqttSnPubComp *message, size_t length);
62error_t mqttSnDumpSubscribe(const MqttSnSubscribe *message, size_t length);
63error_t mqttSnDumpSubAck(const MqttSnSubAck *message, size_t length);
64error_t mqttSnDumpUnsubscribe(const MqttSnUnsubscribe *message, size_t length);
65error_t mqttSnDumpUnsubAck(const MqttSnUnsubAck *message, size_t length);
66error_t mqttSnDumpPingReq(const MqttSnPingReq *message, size_t length);
67error_t mqttSnDumpPingResp(const MqttSnPingResp *message, size_t length);
68error_t mqttSnDumpDisconnect(const MqttSnDisconnect *message, size_t length);
69error_t mqttSnDumpWillTopicUpd(const MqttSnWillTopicUpd *message, size_t length);
70error_t mqttSnDumpWillTopicResp(const MqttSnWillTopicResp *message, size_t length);
71error_t mqttSnDumpWillMsgUpd(const MqttSnWillMsgUpd *message, size_t length);
72error_t mqttSnDumpWillMsgResp(const MqttSnWillMsgResp *message, size_t length);
73
74void mqttSnDumpFlags(MqttSnFlags flags);
75
76const char_t *mqttSnGetMessageName(uint16_t msgType);
77const char_t *mqttSnGetReturnCodeDesc(uint16_t returnCode);
78
79//C++ guard
80#ifdef __cplusplus
81}
82#endif
83
84#endif
error_t
Error codes.
Definition error.h:43
Definitions common to MQTT-SN client and gateway.
void MqttSnPingResp
PINGRESP message.
Definition mqtt_sn_common.h:423
void MqttSnWillMsgUpd
WILLMSGUPD message.
Definition mqtt_sn_common.h:461
void MqttSnWillTopicReq
WILLTOPICREQ message.
Definition mqtt_sn_common.h:258
void MqttSnWillMsg
WILLMSG message.
Definition mqtt_sn_common.h:283
void MqttSnWillMsgReq
WILLMSGREQ message.
Definition mqtt_sn_common.h:276
void MqttSnPingReq
PINGREQ message.
Definition mqtt_sn_common.h:416
TCP/IP stack core.