This is the code i m using and below are my questions:-
1. On serial port it is showing 2nd attribute but "ret" value always comes 258.
see log
7e a0 19 03 41 32 3a bd e6 e6 00 c0 01 81 00 07 ~ ..A2:½ææ.À...
00 00 5e 5b 0a ff 02 00 85 d2 7e ..^[.ÿ..…Ò~
[18/11/2020 11:14:14] Read data (COM1)
7e a0 4f 41 03 52 a8 86 e6 e7 00 c4 01 c1 00 01 ~ OA.R¨†æç.Ä.Á..
01 02 07 0a 0b 30 30 30 30 30 31 32 33 34 35 36 .....00000123456
0a 15 45 4c 53 45 57 45 44 59 20 49 4e 44 49 41 ..ELSEWEDY INDIA
20 50 56 54 4c 54 44 0a 05 31 2e 38 31 30 11 05 PVTLTD..1.810..
0a 02 43 33 0a 05 35 2d 36 30 41 12 07 d0 ea e5 ..C3..5-60A..Ðêå
7e ~
2. The method WriteValue() don't print anything but printf() prints the buffer value.
3. After reading 2nd attribute plz show me the code to fetch values because I need to save and show them. Tried a lot but not getting success.
Hi,
Hi,
It seems that you didn't read capture objects attribute #2 before reading the buffer.
http://www.gurux.fi/Gurux.DLMS.Objects.GXDLMSProfileGeneric
BR,
Mikko