livoxProto1: export getReturnModeReq; cache result in Device

This commit is contained in:
2025-10-30 11:49:54 -04:00
parent f8c5fad841
commit f658e97ed0
4 changed files with 33 additions and 0 deletions
+11
View File
@@ -103,6 +103,14 @@ private:
class GetReturnModeReq;
public:
enum class ReturnMode : uint8_t
{
SingleFirst = 0x00,
SingleStrongest = 0x01,
Dual = 0x02,
Triple = 0x03
};
// Utility methods
std::optional<std::string> getSmoIp(const std::string& deviceIP);
@@ -158,6 +166,9 @@ public:
std::unique_ptr<boost::asio::posix::stream_descriptor> pcloudDataSocketDesc;
std::atomic<bool> pcloudDataActive;
// Cached last-known return mode for this device
ReturnMode currentReturnMode = ReturnMode::SingleFirst;
public:
// UDP datagram handling
void handleUdpDgram(