Device: Implement allowSleep for Wireless neoVI support

This commit is contained in:
Paul Hollinsky
2022-04-26 12:48:17 -04:00
parent c08c0dd893
commit 55d7d5bf17
10 changed files with 310 additions and 0 deletions
@@ -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