Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mqtt_sn_client Struct Reference

#include <mqtt_sn.h>

Data Fields

struct mqtt_sn_data client_id
 
struct mqtt_sn_data will_topic
 
struct mqtt_sn_data will_msg
 
enum mqtt_sn_qos will_qos
 
bool will_retain
 
struct mqtt_sn_transporttransport
 
struct net_buf_simple tx
 
struct net_buf_simple rx
 
mqtt_sn_evt_cb_t evt_cb
 
uint16_t next_msg_id
 
sys_slist_t publish
 
sys_slist_t topic
 
int state
 
int64_t last_ping
 
uint8_t ping_retries
 
struct k_work_delayable process_work
 

Detailed Description

Structure describing an MQTT-SN client.

Field Documentation

◆ client_id

struct mqtt_sn_data mqtt_sn_client::client_id

1-23 character unique client ID

◆ evt_cb

mqtt_sn_evt_cb_t mqtt_sn_client::evt_cb

◆ last_ping

int64_t mqtt_sn_client::last_ping

◆ next_msg_id

uint16_t mqtt_sn_client::next_msg_id

◆ ping_retries

uint8_t mqtt_sn_client::ping_retries

◆ process_work

struct k_work_delayable mqtt_sn_client::process_work

◆ publish

sys_slist_t mqtt_sn_client::publish

◆ rx

struct net_buf_simple mqtt_sn_client::rx

◆ state

int mqtt_sn_client::state

◆ topic

sys_slist_t mqtt_sn_client::topic

◆ transport

struct mqtt_sn_transport* mqtt_sn_client::transport

◆ tx

struct net_buf_simple mqtt_sn_client::tx

◆ will_msg

struct mqtt_sn_data mqtt_sn_client::will_msg

Must be initialized before connecting with will=true

◆ will_qos

enum mqtt_sn_qos mqtt_sn_client::will_qos

◆ will_retain

bool mqtt_sn_client::will_retain

◆ will_topic

struct mqtt_sn_data mqtt_sn_client::will_topic

Must be initialized before connecting with will=true


The documentation for this struct was generated from the following file: