Skip to content

Commit

Permalink
net/mqttsn: add min&max allowed len for client ID
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Jul 4, 2019
1 parent 59933d2 commit 16fa111
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sys/include/net/mqttsn.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ extern "C" {
#define MQTTSN_DEFAULT_PORT (1883U)
#endif

/**
* @name The client ID must contain 1-23 characters
*
* @see MQTT-SN spec v1.2, section 5.3.1
* @{
*/
#define MQTTSN_CLI_ID_MINLEN (1U)
#define MQTTSN_CLI_ID_MAXLEN (23U)
/** @} */

/**
* @brief MQTT-SN flags
*
Expand Down

0 comments on commit 16fa111

Please sign in to comment.