30 lines
673 B
C
30 lines
673 B
C
/*
|
|
* mqtt_protocol.h
|
|
*
|
|
* Created on: 28 May 2026
|
|
* Author: Christian Lind Vie Madsen
|
|
*/
|
|
|
|
#ifndef MAIN_MQTT_SERVICE_MQTT_PROTOCOL_H_
|
|
#define MAIN_MQTT_SERVICE_MQTT_PROTOCOL_H_
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
typedef enum{
|
|
MQTT_PROTOCOL_HEARTBEAT = 0,
|
|
|
|
|
|
}mqtt_protocol_msg_t;
|
|
|
|
void mqtt_protocol_GenerateTopic(char *buf, size_t size, mqtt_protocol_msg_t msg_type);
|
|
|
|
void mqtt_protocol_heartbeat(char *buf,
|
|
size_t size,
|
|
const char *trailerId,
|
|
const char *timestamp,
|
|
const char *lat,
|
|
const char *lon);
|
|
|
|
|
|
#endif /* MAIN_MQTT_SERVICE_MQTT_PROTOCOL_H_ */
|