Merge branch 'main' of https://git.jsspisoft.com/ry-das
This commit is contained in:
commit
c711abde32
@ -379,14 +379,14 @@ static void* ryftp_process(void* param)
|
||||
|
||||
//获取此协议配置里面的ftp信息
|
||||
char remote[512];
|
||||
char name[512];
|
||||
//char name[512];
|
||||
|
||||
//默认参数,或是通过协议配置获取
|
||||
char user[128] = "administrator";
|
||||
char password[128] = "123456";
|
||||
char ipaddress[128] = "127.0.0.1";
|
||||
char remotePath[128] = "Hard Disk2/data/rtdatalog";
|
||||
char pathName[128] = "./";
|
||||
//char pathName[128] = "./";
|
||||
|
||||
char processName[128];
|
||||
snprintf(processName, sizeof(processName), "%s", mbt->GetCurProcessName());
|
||||
@ -826,25 +826,12 @@ BOOLEAN CHostADSBFProcess::OnPreCreate(int id)
|
||||
//SetLocalAmsNetId(AmsNetId(m_localNetId));
|
||||
try {
|
||||
SetLocalAddress(AmsNetId(m_localNetId));
|
||||
|
||||
//192.168.0.231 addroute --addr=192.168.0.1 --netid=192.168.0.1.1.1 --password=1 --username=guest --routename=Testroute
|
||||
//AddRemoteRoute(m_remoteIp, m_localNetId, m_localIp, std::string("isoftstone"), std::string("guest"), std::string("1"));
|
||||
//m_remotePort
|
||||
//m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), AMSPORT_R0_PLC_RTS1};
|
||||
|
||||
m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
||||
//if (m_turbine->IsConnected())
|
||||
{
|
||||
if (!readDeviceState(*m_turbine))
|
||||
{
|
||||
// delete m_turbine;
|
||||
// m_turbine = NULL;
|
||||
// m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort};
|
||||
}
|
||||
}
|
||||
} catch (const AdsException& ex) {
|
||||
vLog(LOG_ERROR, "Error: %d\n", ex.errorCode);
|
||||
vLog(LOG_ERROR, "AdsException message: %s\n", ex.what());
|
||||
vLog(LOG_DEBUG, "try to add a route to remote device.\n");
|
||||
AddRemoteRoute(m_remoteIp, m_localNetId, m_localIp, std::string("isoftstone"), std::string("guest"), std::string("1"));
|
||||
} catch (const std::runtime_error& ex) {
|
||||
vLog(LOG_ERROR, "%s\n", ex.what());
|
||||
}
|
||||
|
@ -406,14 +406,14 @@ static void* ryftp_process(void* param)
|
||||
|
||||
//获取此协议配置里面的ftp信息
|
||||
char remote[512];
|
||||
char name[512];
|
||||
//char name[512];
|
||||
|
||||
//默认参数,或是通过协议配置获取
|
||||
char user[128] = "administrator";
|
||||
char password[128] = "123456";
|
||||
char ipaddress[128] = "127.0.0.1";
|
||||
char remotePath[128] = "/data/rtdatalog";
|
||||
char pathName[128] = "./";
|
||||
//char pathName[128] = "./";
|
||||
|
||||
char processName[128];
|
||||
snprintf(processName, sizeof(processName), "%s", mbt->GetCurProcessName());
|
||||
|
@ -1,7 +1,7 @@
|
||||
export default {
|
||||
PowerCurveAnalysis: '功率曲线分析',
|
||||
trendAnalysis: '趋势分析',
|
||||
trendComparison: '趋势对比',
|
||||
trendAnalysis: '单机分析',
|
||||
trendComparison: '多机对比',
|
||||
deviceId: '风机',
|
||||
attributes: '测点名称',
|
||||
interval: '间隔',
|
||||
|
Loading…
Reference in New Issue
Block a user