mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
35 lines
935 B
C
35 lines
935 B
C
/*********************************************************************
|
||
* function: 程序入口
|
||
* board: esp8266 core for arduino v3.0.2
|
||
* library: PubSubClient2.8.0 & ArduinoJson6.19.1 & OneButton2.0.4
|
||
* source: https://gitee.com/kerwincui/wumei-smart
|
||
* copyright: wumei-smart and kerwincui all rights reserved.
|
||
********************************************************************/
|
||
|
||
#ifndef _MQTT_H
|
||
#define _MQTT_H
|
||
|
||
#include "Common.h"
|
||
|
||
// 发布设备信息
|
||
void publishInfo();
|
||
// 发布时钟同步信息
|
||
void publishNtp();
|
||
// 发布事件
|
||
void publishEvent();
|
||
// 发布实时监测数据
|
||
void publishMonitor();
|
||
// 发布属性
|
||
void publishProperty(String msg);
|
||
// 发布功能
|
||
void publishFunction(String msg);
|
||
|
||
// Mqtt回调
|
||
void mqttCallback(char *topic, byte *payload, unsigned int length);
|
||
// 属性处理
|
||
void processProperty(String payload);
|
||
// 功能处理
|
||
void processFunction(String payload);
|
||
|
||
#endif
|