livoxProto1: detectSmoIp should be based on target dev IP

We previously used the smoIp provided by the user, but this
function is intended to enable us to figure out the correct
IP to send to the target device in the Handshake message.
This commit is contained in:
2025-09-06 20:44:28 -04:00
parent a0d577bf81
commit d2bf5aceee
2 changed files with 35 additions and 24 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ private:
const std::string& broadcastCode);
// IP detection methods
std::optional<std::string> detectSmoIp();
std::string getSmoIp();
std::optional<std::string> detectSmoIp(const std::string& deviceIP);
std::string getSmoIp(const std::string& deviceIP);
uint32_t getSubnetMaskFor(uint8_t nbits);
// Heartbeat mechanism