36 #ifndef RCDISCOVER_DEVICEINFO 37 #define RCDISCOVER_DEVICEINFO 60 void set(
const uint8_t *raw,
size_t len);
int getMajorVersion() const
Return major version of device.
uint32_t getSubnetMask() const
Returns the current subnet mask of the device.
const std::string & getManufacturerName() const
Returns the manufacturer name.
std::string manufacturer_info
std::string manufacturer_name
void clear()
Clears all information.
std::string device_version
uint32_t getGateway() const
Returns the current IP address of the devices gateway.
const std::string & getDeviceVersion() const
Returns the device version.
const std::string & getModelName() const
Returns the model name.
uint32_t getIP() const
Returns the current IP address of the device.
const std::string & getSerialNumber() const
Returns the serial number.
const std::string & getManufacturerInfo() const
Returns manufacturer specific information.
int getMinorVersion() const
Return minor version of device.
DeviceInfo(std::string iface_name)
bool operator<(const DeviceInfo &info) const
First compares the MAC address, then the interface name.
std::string serial_number
uint64_t getMAC() const
Returns 6 bytes with the MAC address of the device.
bool isValid() const
Checks if the object contains useful information.
const std::string & getUserName() const
Returns the user name.
const std::string & getIfaceName() const
Returns the name of the interface on which this device was found.