SharkSSL™ Embedded SSL/TLS Stack
SharkMQTT Struct Reference

Detailed Description

SharkMQTT structure.

See SharkMQ library for details.

#include <SharkMQTT.h>

Data Fields

S32 pingTmo
 Time interval in seconds for MQTT PING messages sent to the server. More...
 
U32 packetLen
 MQTT packet length.
 
U32 bytesRead
 Read packet data using SharkMQTT_getMessage until: packetLen-bytesRead == 0. More...
 
U32 msgLen
 MQTT message length.
 
U32 timeout
 Timeout in milliseconds to wait in functions waiting for server data.
 

Field Documentation

◆ bytesRead

U32 SharkMQTT::bytesRead

Read packet data using SharkMQTT_getMessage until: packetLen-bytesRead == 0.

See also
SharkMQTT_msgConsumed

◆ pingTmo

S32 SharkMQTT::pingTmo

Time interval in seconds for MQTT PING messages sent to the server.

The default value is 20 minutes (1200 seconds). Note: the variable must be set before calling SharkMQTT_connect.