SharkSSL™ Embedded SSL/TLS Stack
Error codes returned by function SharkMQTT_getMessage

Detailed Description

Error codes returned by function SharkMQTT_getMessage

Macros

#define SMQTTE_SOCKET   -1
 Error codes received from the TCP/IP stack are sent "as is". More...
 
#define SMQTTE_ERRORBASE   -10000
 This code is not used. More...
 
#define SMQTTE_TIMEOUT   -10001
 Similar to SMQTT_TIMEOUT, but returned when a timeout was not expected.
 
#define SMQTTE_PONGTIMEOUT   -10002
 The client sent a PING to the broker but did not receive a PONG response.
 
#define SMQTTE_PROTOCOL_ERROR   -10003
 Something's wrong.
 
#define SMQTTE_OVERFLOW   -10005
 The SharkSSL output buffer is not sufficiently large for the operation you are attempting. More...
 
#define SMQTTE_ALREADYCON   -10006
 Calling SharkMQ_connect when a connection is already established.
 
#define SMQTTE_CONREFUSED   -10007
 Broker refused the connection request. More...
 
#define SMQTTE_SERVERNOTTRUSTED   -10008
 Returned by SharkMQTT_connect if the MQTT broker is not trusted. More...
 

Macro Definition Documentation

◆ SMQTTE_CONREFUSED

#define SMQTTE_CONREFUSED   -10007

Broker refused the connection request.

See SharkMQTT_connackCode for details.

◆ SMQTTE_ERRORBASE

#define SMQTTE_ERRORBASE   -10000

This code is not used.

The code is the base for error codes returned by SharkMQ.

◆ SMQTTE_OVERFLOW

#define SMQTTE_OVERFLOW   -10005

The SharkSSL output buffer is not sufficiently large for the operation you are attempting.

Increase the buffer size.

◆ SMQTTE_SERVERNOTTRUSTED

#define SMQTTE_SERVERNOTTRUSTED   -10008

Returned by SharkMQTT_connect if the MQTT broker is not trusted.

SharkMQTT_connect calls seSec_handshake and expects the return value from this function to be SharkSslConTrust_CertCnDate if the code is compiled with the flag SHARKSSL_CHECK_DATE=1 and the return value to be SharkSslConTrust_CertCn if compiled without this flag set.

◆ SMQTTE_SOCKET

#define SMQTTE_SOCKET   -1

Error codes received from the TCP/IP stack are sent "as is".

These error codes have a value greater than SMQTTE_ERRORBASE.