| | |
| | | return 0; // 校验通过 |
| | | } |
| | | |
| | | int CCCLinkIEControl::ReadData2(const StationIdentifier& station, short devType, short devNo, short size, void* pData) |
| | | int CCCLinkIEControl::ReadData2(const StationIdentifier& station, DeviceType enDevType, long devNo, long size, void* pData) |
| | | { |
| | | // 验证站点参数和数据有效性 |
| | | int nRet = ValidateStationAndSize(station, size); |
| | |
| | | // 确保线程安全的最小锁定范围 |
| | | { |
| | | std::lock_guard<std::mutex> lock(m_mtx); |
| | | nRet = mdReceive(m_nPath, CombineStation(station), devType, devNo, &size, pData); |
| | | const short nDevType = CalculateDeviceType(station, enDevType); |
| | | nRet = mdReceiveEx(m_nPath, station.nNetNo, station.nStNo, nDevType, devNo, &size, pData); |
| | | } |
| | | |
| | | if (nRet != 0) { |