first commit
This commit is contained in:
29
main/mqtt_service/mqtt_protocol.h
Normal file
29
main/mqtt_service/mqtt_protocol.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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_ */
|
||||
Reference in New Issue
Block a user