Skip to content

Commit cc33fd6

Browse files
SpontaneousDucknashif
authored andcommitted
net: mqtt-sn: Update MQTT-SN Unit Tests
Fixes: #78010 This commit adds tests for the "Gateway Advertisement and Discovery" process. This includes tests for handling SEARCHGW, GWINFO, and ADVERTISE as well as manually adding a Gateway for use. Gateway pruning when missing ADVERTISE messages is also tested. Signed-off-by: Kenneth Witham <[email protected]>
1 parent aa9c922 commit cc33fd6

File tree

2 files changed

+252
-32
lines changed

2 files changed

+252
-32
lines changed

tests/net/lib/mqtt_sn_client/prj.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ CONFIG_ZTEST_STACK_SIZE=8192
1818
CONFIG_STACK_USAGE=y
1919
CONFIG_STACK_SENTINEL=y
2020
CONFIG_DEBUG=y
21+
22+
# Reduce MQTT_SN delay times for testing
23+
CONFIG_MQTT_SN_LIB_T_SEARCHGW=0
24+
CONFIG_MQTT_SN_LIB_T_GWINFO=0
25+
CONFIG_MQTT_SN_LIB_N_ADV=1

0 commit comments

Comments
 (0)