• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4MQTT
5MQTT PUBLISH
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13</data>
14</reply>
15
16#
17# Client-side
18<client>
19<features>
20mqtt
21</features>
22<server>
23mqtt
24</server>
25<name>
26MQTT PUBLISH
27</name>
28<command option="binary-trace">
29mqtt://%HOSTIP:%MQTTPORT/1191 -d something
30</command>
31</client>
32
33#
34# Verify data after the test has been "shot"
35<verify>
36# These are hexadecimal protocol dumps from the client
37#
38# Strip out the random part of the client id from the CONNECT message
39# before comparison
40<strippart>
41s/^(.* 00044d5154540402003c000c6375726c).*/$1/
42</strippart>
43<protocol>
44client CONNECT 18 00044d5154540402003c000c6375726c
45server CONNACK 2 20020000
46client PUBLISH f 000431313931736f6d657468696e67
47client DISCONNECT 0 e000
48</protocol>
49</verify>
50</testcase>
51