mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 13:19:50 +03:00
channels abstraction changed
This commit is contained in:
16
lighthub/abstractch.h
Normal file
16
lighthub/abstractch.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user