Merge pull request #1612 from cesanta/mqtt

Exported MQTT result codes
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-07-04 15:15:19 +01:00
commit e30ad43d36
4 files changed
+4 -4

No files matched your search

-2
View File
@@ -3004,8 +3004,6 @@ void mg_md5_final(mg_md5_ctx *ctx, unsigned char digest[16]) {
#define MQTT_HAS_PASSWORD 0x40
#define MQTT_HAS_USER_NAME 0x80
enum { MQTT_OK, MQTT_INCOMPLETE, MQTT_MALFORMED };
void mg_mqtt_send_header(struct mg_connection *c, uint8_t cmd, uint8_t flags,
uint32_t len) {
uint8_t buf[1 + sizeof(len)], *vlen = &buf[1];