2021-02-24 20:23:32 +01:00
|
|
|
#include "NodeStruct.h"
|
|
|
|
|
|
|
|
String getNodeTypeDisplayString(uint8_t nodeType) {
|
|
|
|
switch (nodeType)
|
|
|
|
{
|
|
|
|
case NODE_TYPE_ID_ESP8266: return F("ESP8266");
|
|
|
|
case NODE_TYPE_ID_ESP32: return F("ESP32");
|
|
|
|
}
|
|
|
|
return "Undefined";
|
|
|
|
}
|
|
|
|
|
|
|
|
NodeStruct::NodeStruct() :
|
2021-03-04 14:24:25 +01:00
|
|
|
age(0), nodeType(0), build(0)
|
2021-02-24 20:23:32 +01:00
|
|
|
{
|
|
|
|
for (uint8_t i = 0; i < 4; ++i) { ip[i] = 0; }
|
|
|
|
}
|