|
|
@ -7,11 +7,7 @@
|
|
|
|
VendorCtrl::VendorCtrl(const std::string& ip, const std::string& userName, const std::string& password, uint8_t channel, net_handle_t netHandle, bool syncTime/* = true*/) :
|
|
|
|
VendorCtrl::VendorCtrl(const std::string& ip, const std::string& userName, const std::string& password, uint8_t channel, net_handle_t netHandle, bool syncTime/* = true*/) :
|
|
|
|
m_ip(ip), m_userName(userName), m_password(password), m_channel(channel), m_netHandle(netHandle)
|
|
|
|
m_ip(ip), m_userName(userName), m_password(password), m_channel(channel), m_netHandle(netHandle)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (syncTime)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
time_t ts = time(NULL);
|
|
|
|
|
|
|
|
// UpdateTime(ts);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
std::string VendorCtrl::CvtJSONToString(const Json::Value& data)
|
|
|
|
std::string VendorCtrl::CvtJSONToString(const Json::Value& data)
|
|
|
|
{
|
|
|
|
{
|
|
|
|