src/mongoose/mongoose.cpp
static void mg_send_mqtt_short_command(struct mg_connection *nc, uint8_t cmd,
                                       uint16_t message_id) {
    uint16_t message_id_net = htons(message_id);
    mg_send(nc, &message_id_net, 2);
    mg_mqtt_prepend_header(nc, cmd, MG_MQTT_QOS(1), 2);
}
/*
 * Sends a command which contains only a `message_id` and a QoS level of 1.
 *
 * Helper function.
 */
Sends a command which contains only a `message_id` and a QoS level of 1.
Helper function.
Sends a command which contains only a ` message_id ` and a QoS level of 1 . Helper function .
static void mg_send_mqtt_short_command(struct mg_connection *nc, uint8_t cmd,
                                       uint16_t message_id) {
    uint16_t message_id_net = htons(message_id);
    mg_send(nc, &message_id_net, 2);
    mg_mqtt_prepend_header(nc, cmd, MG_MQTT_QOS(1), 2);
}
static void mg_send_mqtt_short_command ( struct mg_connection * nc , uint8_t cmd , uint16_t message_id ) { uint16_t message_id_net = htons ( message_id ) ; mg_send ( nc , & message_id_net , 2 ) ; mg_mqtt_prepend_header ( nc , cmd , MG_MQTT_QOS ( 1 ) , 2 ) ; }
Sends a command which contains only a `message_id` and a QoS level of 1.
Sends a command which contains only a ` message_id ` and a QoS level of 1 .