How to read ice hdlc setup obis object using c++?
Kindly share me a sample code.
Like this-
//-------------------------------------------------------------------
CGXDLMSRegister *iecHdlcObj = new CGXDLMSRegister("0.0.22.0.0.255");
std::string sValue;
if ((ret = comm.Read(iecHdlcObj, 8, sValue)) != 0)
{
TRACE("err! failed to read register: %s", CGXDLMSConverter::GetErrorMessage(ret));
}
//-------------------------------------------------------------------
The above mentioned code is not working and showing the error-
err! failed to read register: Access Error : Device reports a inconsistent Class or Object.
Hi,
Hi,
std::string sValue;
CGXDLMSIecHdlcSetup iecHdlcObj("0.0.22.0.0.255");
comm.Read(&iecHdlcObj, 8, sValue);
BR,
Mikko
Thanks a lot Mikko.
Thanks a lot Mikko.
Actually, silly mistake was in my side that the file was not included that's why the object "CGXDLMSIecHdlcSetup" was not appearing.
Thanks & Regards,
Pradson