Asymcute (MQTT-SN Client) compile configurations

Detailed Description

Macros

#define CONFIG_ASYMCUTE_BUFSIZE_EXP   (7U)
 Default buffer size for Asymcute client (as exponent of 2^n) More...
 
#define CONFIG_ASYMCUTE_TOPIC_MAXLEN   (32U)
 Maximum topic length. More...
 
#define CONFIG_ASYMCUTE_KEEPALIVE   (360)
 Keep alive interval [in s] communicated to the gateway. More...
 
#define CONFIG_ASYMCUTE_KEEPALIVE_PING   ((CONFIG_ASYMCUTE_KEEPALIVE / 4) * 3)
 Interval to use for sending periodic ping messages. More...
 
#define CONFIG_ASYMCUTE_T_RETRY   (10U)
 Resend interval [in seconds]. More...
 
#define CONFIG_ASYMCUTE_N_RETRY   (3U)
 Number of retransmissions until requests time out. More...
 

Macro Definition Documentation

◆ CONFIG_ASYMCUTE_BUFSIZE_EXP

#define CONFIG_ASYMCUTE_BUFSIZE_EXP   (7U)

Default buffer size for Asymcute client (as exponent of 2^n)

As the buffer size ALWAYS needs to be power of two, this option represents the exponent of 2^n, which will be used as the size of the buffer.

Definition at line 73 of file asymcute.h.

◆ CONFIG_ASYMCUTE_KEEPALIVE

#define CONFIG_ASYMCUTE_KEEPALIVE   (360)

Keep alive interval [in s] communicated to the gateway.

keep alive interval in seconds which is communicated to the gateway in the CONNECT message. For more information, see MQTT-SN Spec v1.2, section 5.4.4. For default values,see section 7.2 -> TWAIT: > 5 min.

Definition at line 93 of file asymcute.h.

◆ CONFIG_ASYMCUTE_KEEPALIVE_PING

#define CONFIG_ASYMCUTE_KEEPALIVE_PING   ((CONFIG_ASYMCUTE_KEEPALIVE / 4) * 3)

Interval to use for sending periodic ping messages.

The default behavior of this implementation is to send ping messages as soon as three quarters of the keep alive interval have passed.

Note
Must be less than CONFIG_ASYMCUTE_KEEPALIVE

Definition at line 105 of file asymcute.h.

◆ CONFIG_ASYMCUTE_N_RETRY

#define CONFIG_ASYMCUTE_N_RETRY   (3U)

Number of retransmissions until requests time out.

Maximum number of retransmissions in the event that the retry timer times out. After 'CONFIG_ASYMCUTE_N_RETRY' number of retransmissions, the client aborts the procedure and assumes that its MQTT-SN connection to the gateway is disconnected. For more information, see MQTT-SN Spec v1.2, section 6.13. For default values, see section 7.2 -> Nretry: 3-5.

Definition at line 132 of file asymcute.h.

◆ CONFIG_ASYMCUTE_T_RETRY

#define CONFIG_ASYMCUTE_T_RETRY   (10U)

Resend interval [in seconds].

Interval used for timing the retry messages which are sent when the expected reply from GW is not received. The retry timer is started by the client when the message is sent and stopped when the expected reply from GW is received. If the timer times out and the expected GW’s reply is not received, the client retransmits the message. For more information, see MQTT-SN Spec v1.2, section 6.13. For default values, see section 7.2 -> Tretry: 10 to 15 sec.

Definition at line 119 of file asymcute.h.

◆ CONFIG_ASYMCUTE_TOPIC_MAXLEN

#define CONFIG_ASYMCUTE_TOPIC_MAXLEN   (32U)

Maximum topic length.

Note
Must be less than (256 - 8) AND less than ( ASYMCUTE_BUFSIZE - 8).

Definition at line 82 of file asymcute.h.