Moved fields from thing to corething
This commit is contained in:
parent
12fd89f3fb
commit
b2f1a74133
@ -8,9 +8,10 @@ public:
|
||||
unsigned char networkId;
|
||||
unsigned char id;
|
||||
// CoreThing *parent;
|
||||
/// @brief The type of Thing
|
||||
unsigned char type;
|
||||
const char *name;
|
||||
const char *modelUrl;
|
||||
const char *name = nullptr;
|
||||
const char *modelUrl = nullptr;
|
||||
// protected Sensor sensor;
|
||||
|
||||
static CoreThing *allThings[];
|
||||
|
4
Thing.h
4
Thing.h
@ -18,10 +18,7 @@ public:
|
||||
|
||||
/// @char The id of the thing
|
||||
unsigned char id;
|
||||
/// @brief The type of Thing
|
||||
unsigned int type;
|
||||
|
||||
const char *name = nullptr;
|
||||
void SetName(const char *name);
|
||||
|
||||
// I hate this, better is to have an additional field stating the thing
|
||||
@ -107,7 +104,6 @@ public:
|
||||
|
||||
unsigned char childCount = 0;
|
||||
|
||||
const char *modelUrl = nullptr;
|
||||
float modelScale = 1;
|
||||
|
||||
virtual void SendBytes(unsigned char *buffer, unsigned char *ix) {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user