README
1MQTT Library Test
2-----------------
3
4This MQTT application tests the low-level API for packet handling.
5No network activity is involved in this test, so ** theoretically **
6it can be run on almost any board already supported by Zephyr and
7with enough RAM/ROM.
8
9Build and Run
10-------------
11
12* QEMU x86
13
14 Build & run:
15 mkdir build; cd build
16 cmake -DBOARD=qemu_x86 ..
17 make run
18
19* NXP Freedom-K64F (frdm-k64f)
20
21 Build:
22 mkdir build; cd build
23 cmake -DBOARD=frdm_k64f ..
24 make run
25
26 Firmware version:
27 Version: 0226
28 Build: Aug 24 2015 17:06:30
29 Git Commit SHA: 27a236b9fe39c674a703c5c89655fbd26b8e27e1
30 Git Local mods: Yes
31
32 For more information about this board, see:
33 https://developer.mbed.org/platforms/frdm-k64f/
34
35Sample Output
36-------------
37
38To exit from QEMU enter: 'CTRL+a, x'
39[QEMU] CPU: qemu32
40tc_start() - MQTT Library test
41[PASS] 1 - CONNECT, new session, zeros
42[PASS] 2 - CONNECT, new session, will
43[PASS] 3 - CONNECT, new session, will retain
44[PASS] 4 - CONNECT, new session, will qos = 1
45[PASS] 5 - CONNECT, new session, will qos = 1, will retain
46[PASS] 6 - CONNECT, new session, username and password
47[PASS] 7 - DISCONNECT
48[PASS] 8 - PUBLISH, qos = 0
49[PASS] 9 - PUBLISH, retain = 1
50[PASS] 10 - PUBLISH, retain = 1, qos = 1
51[PASS] 11 - PUBLISH, qos = 2
52[PASS] 12 - SUBSCRIBE, one topic, qos = 0
53[PASS] 13 - SUBSCRIBE, one topic, qos = 1
54[PASS] 14 - SUBSCRIBE, one topic, qos = 2
55[PASS] 15 - SUBACK, one topic, qos = 0
56[PASS] 16 - SUBACK, one topic, qos = 1
57[PASS] 17 - SUBACK, one topic, qos = 2
58[PASS] 18 - PINGREQ
59[PASS] 19 - PUBACK
60[PASS] 20 - PUBREC
61[PASS] 21 - PUBREL
62[PASS] 22 - PUBCOMP
63[PASS] 23 - UNSUBACK
64===================================================================
65PASS - main.
66===================================================================
67PROJECT EXECUTION SUCCESSFUL
68