mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
Merge branch 'IoTManagerProject:ver4dev' into ver4dev
This commit is contained in:
@@ -24,10 +24,18 @@
|
||||
#define FIRMWARE_NAME "esp8266_4mb"
|
||||
#endif
|
||||
|
||||
#ifdef esp8266_16mb
|
||||
#define FIRMWARE_NAME "esp8266_16mb"
|
||||
#endif
|
||||
|
||||
#ifdef esp32_4mb
|
||||
#define FIRMWARE_NAME "esp32_4mb"
|
||||
#endif
|
||||
|
||||
#ifdef esp32_16mb
|
||||
#define FIRMWARE_NAME "esp32_16mb"
|
||||
#endif
|
||||
|
||||
#ifdef esp32s2_4mb
|
||||
#define FIRMWARE_NAME "esp32s2_4mb"
|
||||
#endif
|
||||
|
||||
@@ -14,6 +14,7 @@ boolean mqttConnect();
|
||||
void mqttReconnect();
|
||||
void mqttLoop();
|
||||
void mqttSubscribe();
|
||||
bool mqttIsConnect();
|
||||
|
||||
boolean publish(const String& topic, const String& data);
|
||||
boolean publishData(const String& topic, const String& data);
|
||||
@@ -21,6 +22,7 @@ boolean publishChartMqtt(const String& topic, const String& data);
|
||||
boolean publishJsonMqtt(const String& topic, const String& json);
|
||||
boolean publishStatusMqtt(const String& topic, const String& data);
|
||||
boolean publishEvent(const String& topic, const String& data);
|
||||
void mqttSubscribeExternal(String topic, bool usePrefix);
|
||||
|
||||
bool publishChartFileToMqtt(String path, String id, int maxCount);
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ extern bool jsonRead(const String& json, String key, float& value, bool e = true
|
||||
extern bool jsonRead(const String& json, String key, String& value, bool e = true);
|
||||
extern bool jsonRead(const String& json, String key, bool& value, bool e = true);
|
||||
extern bool jsonRead(const String& json, String key, int& value, bool e = true);
|
||||
extern bool jsonReadArray(const String& json, String key, std::vector<String>& jArray, bool e = true);
|
||||
|
||||
extern String jsonReadStr(const String& json, String name, bool e = true);
|
||||
extern int jsonReadInt(const String& json, String name, bool e = true);
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
#include "Global.h"
|
||||
#include "MqttClient.h"
|
||||
|
||||
#include <vector>
|
||||
// boolean isNetworkActive();
|
||||
inline boolean isNetworkActive() {return WiFi.status() == WL_CONNECTED;};
|
||||
void routerConnect();
|
||||
bool startAPMode();
|
||||
boolean RouterFind(String ssid);
|
||||
boolean RouterFind(std::vector<String> jArray);
|
||||
uint8_t RSSIquality();
|
||||
extern void wifiSignalInit();
|
||||
|
||||
Reference in New Issue
Block a user