mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
запустил первый сенсор в прошивке 4 той версии
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
|
||||
extern std::vector<IoTSensor*> iotSensors; // вектор ссылок базового класса IoTSensor - список всех запущенных сенсоров
|
||||
|
||||
extern void configure(String& path);
|
||||
extern void configure(String path);
|
||||
@@ -7,3 +7,4 @@
|
||||
#include "StandWebServer.h"
|
||||
#include "classes/SendJson.h"
|
||||
#include "classes/NotAsync.h"
|
||||
#include "Configuration.h"
|
||||
|
||||
16
include/modules/IoTSensorA.h
Normal file
16
include/modules/IoTSensorA.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
#include "Classes/IoTSensor.h"
|
||||
|
||||
class IoTSensorA : public IoTSensor {
|
||||
public:
|
||||
IoTSensorA(String parameters);
|
||||
~IoTSensorA();
|
||||
|
||||
void doByInterval();
|
||||
|
||||
private:
|
||||
unsigned int _pin;
|
||||
};
|
||||
|
||||
extern IoTSensorA* mySensorAnalog;
|
||||
Reference in New Issue
Block a user