Response codes returned by function SMQ_getMessage

Macros

#define SMQ_SUBACK   -20000
 SMQ_subscribe response message received via SMQ_getMessage. More...
 
#define SMQ_CREATEACK   -20001
 SMQ_create response message received via SMQ_getMessage. More...
 
#define SMQ_CREATESUBACK   -20002
 SMQ_createsub response message received via SMQ_getMessage. More...
 
#define SMQ_SUBCHANGE   -20003
 Change notification event (from observed tid). More...
 

Detailed Description

Macro Definition Documentation

#define SMQ_CREATEACK   -20001

SMQ_create response message received via SMQ_getMessage.

  • SMQ::ptid is set to the created Topic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.
  • the 'msg' out parameter in SMQ_getMessage is set to the optional server's authentication response message if the request was denied.
Examples:
cloud/simplemq/main.c.
#define SMQ_CREATESUBACK   -20002

SMQ_createsub response message received via SMQ_getMessage.

  • SMQ::ptid is set to the created Sub Topic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.
Examples:
cloud/simplemq/main.c.
#define SMQ_SUBACK   -20000

SMQ_subscribe response message received via SMQ_getMessage.

  • SMQ::ptid is set to the subscribed Topic ID.
  • SMQ::status is set to zero (0) if the request was accepted and a negative value if the request was denied.
  • the 'msg' out parameter in SMQ_getMessage is set to the optional server's authentication response message if the request was denied.
Examples:
cloud/simplemq/main.c.
#define SMQ_SUBCHANGE   -20003

Change notification event (from observed tid).

Observe events are initiated via SMQ_observe.

  • SMQ::ptid is set to the observed Topic ID.
  • SMQ::status is set to the number of clients subscribed to the topic.
Examples:
cloud/simplemq/main.c.