mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 14:12:16 +03:00
Новый веб!
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -4,12 +4,12 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||
|
||||
<title>IoT Manager 4.3.2</title>
|
||||
<title>IoT Manager 4.3.4</title>
|
||||
|
||||
<link rel="icon" type="image/png" href="/favicon.ico" />
|
||||
<link rel="stylesheet" href="/build/bundle.css?432" />
|
||||
<link rel="stylesheet" href="/build/bundle.css?434" />
|
||||
|
||||
<script defer src="/build/bundle.js?432"></script>
|
||||
<script defer src="/build/bundle.js?434"></script>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
|
||||
@@ -429,21 +429,8 @@
|
||||
"num": 33
|
||||
},
|
||||
{
|
||||
"name": "34. UART",
|
||||
"type": "Reading",
|
||||
"subtype": "SoftUART",
|
||||
"page": "",
|
||||
"descr": "",
|
||||
"widget": "nil",
|
||||
"id": "u",
|
||||
"tx": 12,
|
||||
"rx": 13,
|
||||
"speed": 9600,
|
||||
"num": 34
|
||||
},
|
||||
{
|
||||
"name": "35. HC-SR04 Ультразвуковой дальномер",
|
||||
"num": 35,
|
||||
"name": "34. HC-SR04 Ультразвуковой дальномер",
|
||||
"num": 34,
|
||||
"type": "Reading",
|
||||
"subtype": "Sonar",
|
||||
"id": "sonar",
|
||||
@@ -454,6 +441,19 @@
|
||||
"pinEcho": 4,
|
||||
"int": 5
|
||||
},
|
||||
{
|
||||
"name": "35. UART",
|
||||
"type": "Reading",
|
||||
"subtype": "UART",
|
||||
"page": "",
|
||||
"descr": "",
|
||||
"widget": "nil",
|
||||
"id": "u",
|
||||
"tx": 12,
|
||||
"rx": 13,
|
||||
"speed": 9600,
|
||||
"num": 35
|
||||
},
|
||||
{
|
||||
"header": "Исполнительные устройства"
|
||||
},
|
||||
|
||||
@@ -118,11 +118,11 @@
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"path": "src\\modules\\sensors\\SoftUart",
|
||||
"path": "src\\modules\\sensors\\Sonar",
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"path": "src\\modules\\sensors\\Sonar",
|
||||
"path": "src\\modules\\sensors\\UART",
|
||||
"active": true
|
||||
}
|
||||
],
|
||||
|
||||
@@ -87,8 +87,8 @@ build_src_filter =
|
||||
+<modules\sensors\RCswitch>
|
||||
+<modules\sensors\Sht20>
|
||||
+<modules\sensors\Sht30>
|
||||
+<modules\sensors\SoftUart>
|
||||
+<modules\sensors\Sonar>
|
||||
+<modules\sensors\UART>
|
||||
+<modules\exec\ButtonIn>
|
||||
+<modules\exec\ButtonOut>
|
||||
+<modules\exec\IoTServo>
|
||||
|
||||
@@ -17,8 +17,8 @@ void* getAPI_Pzem004(String subtype, String params);
|
||||
void* getAPI_RCswitch(String subtype, String params);
|
||||
void* getAPI_Sht20(String subtype, String params);
|
||||
void* getAPI_Sht30(String subtype, String params);
|
||||
void* getAPI_SoftUART(String subtype, String params);
|
||||
void* getAPI_Sonar(String subtype, String params);
|
||||
void* getAPI_UART(String subtype, String params);
|
||||
void* getAPI_ButtonIn(String subtype, String params);
|
||||
void* getAPI_ButtonOut(String subtype, String params);
|
||||
void* getAPI_IoTServo(String subtype, String params);
|
||||
@@ -47,8 +47,8 @@ if ((tmpAPI = getAPI_Pzem004(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_RCswitch(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Sht20(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Sht30(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_SoftUART(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_Sonar(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_UART(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_ButtonIn(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_ButtonOut(subtype, params)) != nullptr) return tmpAPI;
|
||||
if ((tmpAPI = getAPI_IoTServo(subtype, params)) != nullptr) return tmpAPI;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "classes/IoTItem.h"
|
||||
|
||||
#include "PZEMSensor.h"
|
||||
#include "modules/sensors/SoftUart/SoftUart.h"
|
||||
#include "modules/sensors/UART/Uart.h"
|
||||
|
||||
PZEMSensor* pzem;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "classes/IoTItem.h"
|
||||
#include <Arduino.h>
|
||||
|
||||
#include "modules/sensors/SoftUart/SoftUart.h"
|
||||
#include "modules/sensors/UART/Uart.h"
|
||||
|
||||
#ifdef ESP8266
|
||||
SoftwareSerial* myUART = nullptr;
|
||||
@@ -11,14 +11,14 @@ SoftwareSerial* myUART = nullptr;
|
||||
HardwareSerial* myUART = nullptr;
|
||||
#endif
|
||||
|
||||
class SoftUART : public IoTItem {
|
||||
class UART : public IoTItem {
|
||||
private:
|
||||
int tx;
|
||||
int rx;
|
||||
int speed;
|
||||
|
||||
public:
|
||||
SoftUART(String parameters) : IoTItem(parameters) {
|
||||
UART(String parameters) : IoTItem(parameters) {
|
||||
tx = jsonReadInt(parameters, "tx");
|
||||
rx = jsonReadInt(parameters, "rx");
|
||||
speed = jsonReadInt(parameters, "speed");
|
||||
@@ -60,9 +60,9 @@ class SoftUART : public IoTItem {
|
||||
}
|
||||
};
|
||||
|
||||
void* getAPI_SoftUART(String subtype, String param) {
|
||||
if (subtype == F("SoftUART")) {
|
||||
return new SoftUART(param);
|
||||
void* getAPI_UART(String subtype, String param) {
|
||||
if (subtype == F("UART")) {
|
||||
return new UART(param);
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "UART",
|
||||
"type": "Reading",
|
||||
"subtype": "SoftUART",
|
||||
"subtype": "UART",
|
||||
"page": "",
|
||||
"descr": "",
|
||||
"widget": "nil",
|
||||
@@ -19,7 +19,7 @@
|
||||
"authorContact": "https://t.me/Dmitry_Borisenko",
|
||||
"authorGit": "https://github.com/DmitryBorisenko33",
|
||||
"specialThanks": "Serghei Crasnicov @Serghei63",
|
||||
"moduleName": "SoftUART",
|
||||
"moduleName": "UART",
|
||||
"moduleVersion": "1.0",
|
||||
"usedRam": 15,
|
||||
"subTypes": [
|
||||
Reference in New Issue
Block a user