2024-07-01 22:40:12 +08:00
|
|
|
#ifndef COMMSER_H
|
|
|
|
#define COMMSER_H
|
|
|
|
|
|
|
|
#include "Arduino.h"
|
2024-07-02 21:29:01 +08:00
|
|
|
#include "Ticker.h" //调用Ticker.h库
|
2024-07-01 22:40:12 +08:00
|
|
|
#include "FoodDeliveryBase.h"
|
|
|
|
#include "config.h"
|
|
|
|
|
2024-07-02 21:29:01 +08:00
|
|
|
extern void mqtt_receiveCallback(char *topic, byte *payload, unsigned int length);
|
|
|
|
extern void pubThread();
|
|
|
|
extern void writeRoute(String topicStr);
|
|
|
|
extern void mavlink_receiveCallback(uint8_t c);
|
2024-07-03 15:21:33 +08:00
|
|
|
extern const String topicPub[];
|
|
|
|
extern const int topicPubCount;
|
2024-07-02 21:29:01 +08:00
|
|
|
extern String topicPubMsg[];
|
|
|
|
extern String oldMsg[];
|
2024-07-03 19:43:03 +08:00
|
|
|
extern String topicHandle[];
|
2024-07-04 14:25:50 +08:00
|
|
|
extern FoodCube fc; // 创建项目对象
|
|
|
|
extern Ticker pubTicker; // 定时发布主题 线程
|
|
|
|
extern Ticker mavTicker; // 定时 指定飞控mavlink 串口返回的数据类别 防止飞控启动滞后
|
2024-07-01 22:40:12 +08:00
|
|
|
#endif
|