start modularization

This commit is contained in:
2016-04-08 10:18:59 +02:00
parent 563e22b81a
commit 2dd13a685e
3 changed files with 69 additions and 25 deletions

12
things/Device.h Normal file
View File

@ -0,0 +1,12 @@
#ifndef DEVICE_H
#define DEVICE_H
class Device {
public:
// purely virtual functions, need to be implemented
virtual void setup() = 0;
virtual void homieRegister() = 0;
virtual void loop() = 0;
};
#endif