97 {
98 j = {{
"clientId",
mqtt->getClientId()},
99 {
"connectionName",
mqtt->getConnectionName()},
100 {
"cleanSession",
mqtt->getCleanSession()},
101 {
"connectFlags",
mqtt->getConnectFlags()},
102 {"username", mqtt->getUsername()},
103 {"usernameFlag", mqtt->getUsernameFlag()},
104 {"password", mqtt->getPassword()},
105 {"passwordFlag", mqtt->getPasswordFlag()},
106 {"keepAlive", mqtt->getKeepAlive()},
107 {"protocol", mqtt->getProtocol()},
108 {"protocolLevel", mqtt->getLevel()},
109 {"loopPrevention", !mqtt->getReflect()},
110 {"willMessage", mqtt->getWillMessage()},
111 {"willTopic", mqtt->getWillTopic()},
112 {"willQoS", mqtt->getWillQoS()},
113 {"willFlag", mqtt->getWillFlag()},
114 {"willRetain", mqtt->getWillRetain()},
115 {"since", mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineSince()},
116 {"duration", mqtt->getMqttContext()->getSocketConnection()->getSocketContext()->getOnlineDuration()},
117 {"localAddress", mqtt->getMqttContext()->getSocketConnection()->getLocalAddress().toString()},
118 {"remoteAddress", mqtt->getMqttContext()->getSocketConnection()->getRemoteAddress().toString()}};
119 }