channels abstraction changed

This commit is contained in:
2019-07-14 01:11:23 +03:00
parent 5540b6ae4d
commit 088a4b0397
5 changed files with 73 additions and 10 deletions

16
lighthub/abstractch.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include "Arduino.h"
class abstractCh {
public:
abstractCh(){};
// virtual int Setup(int addr) = 0;
virtual int Poll() = 0;
protected:
// Input * in;
int publish(char* topic, long value, char* subtopic = NULL);
int publish(char* topic, float value, char* subtopic = NULL );
int publish(char* topic, char * value, char* subtopic = NULL);
//friend Input;
};