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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user