MQTT
MQTT SUBSCRIBE
# Server-side
hello
# Send a PINGRESP (0xD0) with remaining_length=2 in place of the
# expected CONNACK. MQTT 3.1.1 s. 3.13.1 requires PINGRESP to have
# remaining_length == 0. Curl must reject this with
# CURLE_WEIRD_SERVER_REPLY rather than dispatching to the CONNACK
# handler.
PINGRESP-as-CONNACK TRUE
# Client-side
mqtt
mqtt
MQTT reject PINGRESP with nonzero remaining_length in place of CONNACK
mqtt://%HOSTIP:%MQTTPORT/%TESTNUMBER
# Verify data after the test has been "shot"
# Strip out the random part of the client id from the CONNECT message
# before comparison
s/^(.* 00044d5154540402003c000c6375726c).*/$1/
client CONNECT 18 00044d5154540402003c000c6375726c
server PINGRESP-as-CONNACK 2 d0020000
# 8 is CURLE_WEIRD_SERVER_REPLY
8