mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Refactor for a central include directory
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef __SERIALNUMBERMESSAGE_H_
|
||||
#define __SERIALNUMBERMESSAGE_H_
|
||||
|
||||
#include "icsneo/communication/message/main51message.h"
|
||||
#include "icsneo/communication/command.h"
|
||||
#include <string>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
// The response for Command::RequestSerialNumber
|
||||
class SerialNumberMessage : public Main51Message {
|
||||
public:
|
||||
SerialNumberMessage() : Main51Message() { command = Command::RequestSerialNumber; }
|
||||
virtual ~SerialNumberMessage() = default;
|
||||
std::string deviceSerial;
|
||||
uint8_t macAddress[6]; // This might be all zeros even if `hasMacAddress` is true
|
||||
bool hasMacAddress = false; // The message might not actually be long enough to contain a MAC address, in which case we mark this
|
||||
uint8_t pcbSerial[16];
|
||||
bool hasPCBSerial = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user