7
RYWB116 MQTT Client Application User Guide
Copyright © 2019
, REYAX TECHNOLOGY CO., LTD.
Server port number of MQTT broker/server
Client port number of the MQTT client
5.
The following parameters are configured if OS is used.
WLAN task priority is given and this should be of low priority
Driver task priority is given and this should be of highest priority
WLAN Task stack size is configured by this macro
Driver Task stack size is configured by this macro
6.
The following parameters are used for the MQTT client specific
information configuration
MQTT client Keep alive period
Memory to initialize MQTT client Info structure
Global buffer or memory which is used for MQTT client initialization.
This buffer is used for the MQTT client information storage.
QOS of the message. This QOS is MQTT protocol specific and the valid
values are 0,1 and 2. This field indicates the level of assurance for
delivery of an Application Message. The QoS levels are
0 - At most once delivery
1 - At least once delivery
2 - Exactly once delivery
MQTT topic to which client is supposed to subscribe
MQTT Message to publish on the topic subscribed
#define CLIENT_PORT
1883
#define RSI_DRIVER_TASK_PRIORITY
1
#define RSI_DRIVER_TASK_STACK_SIZE 500
#define MQTT_CLIENT_INIT_BUFF_LEN 3500
uint8_t mqqt_client_buffer[MQTT_CLIENT_INIT_BUFF_LEN]
#define QOS
0
uint8_t publish_message[] ="THIS IS MQTT CLIENT DEMO
FROM REYAX"
#define SERVER_PORT
1883
#define RSI_WLAN_TASK_PRIORITY
1
#define RSI_WLAN_TASK_STACK_SIZE
500
#define RSI_KEEP_ALIVE_PERIOD
100
#define RSI_MQTT_TOPIC
"REYAX"