Moved fields from thing to corething

This commit is contained in:
Pascal Serrarens 2024-12-16 08:28:19 +01:00
parent 12fd89f3fb
commit b2f1a74133
2 changed files with 3 additions and 6 deletions

View File

@ -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[];

View File

@ -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) {};