How to read specific profile genric register buffer in C ?
Say For example I want to read buffer of profile generic variable 1.0.99.1.0.255 and print all the values which com_read(x,2) will result.
I am able to read but I am unable to print column headers ?
How can I print column headers after reading profile generic columns.
gxArray obj = pg->captureObjects;
I have read attribute index 3 it returns result in Hex I want the result in readable format.
Say I have four columns so I want to get OBIS code or column headers for 4 columns
Like this
ret = com_read(connection, object, 3);
gxReplyData reply;
reply_init(&reply);
ret = cl_updateValue(&connection->settings, object, 3, &reply.dataValue);
Hi,
Hi,
Check the client example. It does that.
BR,
Mikko
I am able to read but I am
I am able to read but I am unable to print column headers ?
How can I print column headers after reading profile generic columns.
gxArray obj = pg->captureObjects;
Hi,
Hi,
Check obj_CaptureObjectsToString. You need to read attribute #3 first.
BR,
Mikko
Hello,
Hello,
I have read attribute index 3 it returns result in Hex I want the result in readable format.
Say I have four columns so I want to get OBIS code or column headers for 4 columns
Hi,
Hi,
cl_updateValue parse hex string and update value to the profile generic object.
BR,
Mikko
Like this
Like this
ret = com_read(connection, object, 3);
gxReplyData reply;
reply_init(&reply);
ret = cl_updateValue(&connection->settings, object, 3, &reply.dataValue);
But it returns access violation error
Hi,
Hi,
com_read calls this internally. You don't need to call it again.
BR,
Mikko
Ok If I hit breakpoint I cant
Ok If I hit breakpoint I cant see my column headers.
Can You please let me know how can I print column headers after capturing / reading index 3
Hi,
Hi,
Call obj_CaptureObjectsToString
BR,'
Mikko
In C obj
In C obj_CaptureObjectsToString is undefined
Hi,
Hi,
Call obj_toString. It calls obj_CaptureObjectsToString.
BR,
Mikko
Thanks It works
Thanks It works
char* data = NULL;
ret = obj_toString(object, &data);
if (data != NULL)
{
printf("%s", data);
free(data);
data = NULL;
}