Refactor for a central include directory

This commit is contained in:
Paul Hollinsky
2018-10-22 11:52:34 -04:00
parent 12451def11
commit 8e6b0d0b0e
127 changed files with 263 additions and 265 deletions
@@ -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