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