mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device: Implement allowSleep for Wireless neoVI support
This commit is contained in:
@@ -29,6 +29,7 @@ public:
|
||||
EthernetPhyRegister = 0x8007,
|
||||
LogicalDiskInfo = 0x8008,
|
||||
ExtendedResponse = 0x8009,
|
||||
WiVICommandResponse = 0x800a,
|
||||
};
|
||||
|
||||
Message(Type t) : type(t) {}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
#ifndef __WIVIRESPONSEMESSAGE_H_
|
||||
#define __WIVIRESPONSEMESSAGE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include "icsneo/communication/message/message.h"
|
||||
#include "icsneo/communication/command.h"
|
||||
#include "icsneo/platform/optional.h"
|
||||
#include "icsneo/communication/packet/wivicommandpacket.h"
|
||||
#include <string>
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
namespace WiVI {
|
||||
|
||||
struct Info {
|
||||
uint8_t sleepRequest;
|
||||
uint16_t connectionTimeoutMinutes;
|
||||
std::vector<CaptureInfo> captures;
|
||||
};
|
||||
|
||||
// The response for Command::WiVICommand
|
||||
class ResponseMessage : public Message {
|
||||
public:
|
||||
ResponseMessage() : Message(Message::Type::WiVICommandResponse) {}
|
||||
bool success = true;
|
||||
optional<Command> responseTo;
|
||||
optional<int32_t> value;
|
||||
optional<Info> info;
|
||||
};
|
||||
|
||||
} // namespace WiVI
|
||||
|
||||
} // namespace icsneo
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user