.keep_alive_seconds = 600,
.clean_session_flag = MQTT_SESSION_RESUME,
.client_id = "test",
- .will_topic = "will/temp/test",
+ .will_topic = { .name = "will/temp/test", .QoS = MQTT_QoS_0 },
+ .will_retain = 1,
.will_msg_size = 4,
.will_msg = (uint8_t*)"Bye",
- .will_QoS = 0,
- .will_retain = 1,
.username = "test",
.password = "pass",
};
struct mqtt_publish_pkt pub_pkt = {
- .topic = "temp/test",
- .QoS = 1,
+ .topic = { .name = "temp/test", .QoS = 1, },
.retain_flag = 1,
.message_size = sizeof(int),
};