Device: Add get_pcb_serial() & get_mac_address()

This commit is contained in:
Thomas Stoddard
2026-04-02 15:45:58 -04:00
committed by Kyle Schwarz
parent 87e2a65b71
commit 6f2ad54adc
3 changed files with 23 additions and 0 deletions
+2
View File
@@ -178,6 +178,8 @@ public:
DeviceType getType() const { return DeviceType(data.type); }
std::string getSerial() const { return data.serial; }
uint32_t getSerialNumber() const { return Device::SerialStringToNum(getSerial()); }
std::optional<std::vector<uint8_t>> getPCBSerial();
std::optional<std::vector<uint8_t>> getMACAddress();
const neodevice_t& getNeoDevice() const { return data; }
virtual std::string getProductName() const { return getType().getGenericProductName(); }
std::string describe() const;