/*
 * mqtt.h
 *
 *  Created on: 08/04/2026
 *      Author: carec
 */
#ifndef MQTT_H
#define MQTT_H

#include <stdint.h>
#include <stdbool.h>

uint16_t mqtt_build_connect(uint8_t *out,
                            const char *client_id,
                            const char *username,
                            const char *password,
                            uint16_t keepalive);

bool mqtt_parse_connack(const uint8_t *buf, uint16_t len);

#endif
