Hi Mikko, (I can compile "server.ino" without errors) but I can't to compile "client.ino" on Arduino IDE, I put the "src" and "include" into the sketch folder, but I obtain these errors:
sketch/src/gxget.c.o: In function `getLNAccessRights':
sketch/src/gxget.c:497: undefined reference to `svr_getAttributeAccess'
sketch/src/gxget.c:529: undefined reference to `svr_getMethodAccess'
sketch/src/gxget.c.o: In function `getSNAccessRights':
sketch/src/gxget.c:991: undefined reference to `svr_getAttributeAccess'
sketch/src/gxget.c:1012: undefined reference to `svr_getMethodAccess'
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Zero (Native USB Port).
Do you know which is the problem, or how to fix it?
Thanks and regards
Alejandro
Hai Mikko..
I was experiencing same issue but with some more errors and got solved by the help of your comment.
My error was as following :
sketch\src\dlms.c.o: In function `dlms_getHdlcData':
sketch\src/dlms.c:2789: undefined reference to `svr_isTarget'
sketch\src\dlms.c.o: In function `dlms_handledGloDedRequest':
sketch\src/dlms.c:4071: undefined reference to `svr_isTarget'
sketch\src/dlms.c:4079: undefined reference to `svr_connected'
sketch\src\gxget.c.o: In function `getLNAccessRights':
sketch\src/gxget.c:624: undefined reference to `svr_getAttributeAccess'
sketch\src/gxget.c:656: undefined reference to `svr_getMethodAccess'
sketch\src\gxget.c.o: In function `getSNAccessRights':
sketch\src/gxget.c:1167: undefined reference to `svr_getAttributeAccess'
sketch\src/gxget.c:1188: undefined reference to `svr_getMethodAccess'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Grasshopper-L082CZ.
I was using Murata grasshopper board with a stm32l08 processor.
My question is what really happened when i uncommented #define DLMS_IGNORE_SERVER in the header file. My doubt is, will ignoring the server makes any issues with data gathering during communication between the dlms meter and my board(grasshopper).
I have only 4 days of experiance in DLMS. Thanks in advance. Regards
Meter functionality is removed when you define DLMS_IGNORE_SERVER. If you are just reading DLMS meter, then this is the correct way and you can just define DLMS_IGNORE_SERVER.
Hi Alejandro,
Hi Alejandro,
#define DLMS_IGNORE_SERVER. You can add it if you uncomment #define DLMS_IGNORE_SERVER from the gxignore.h file.
We'll add empty sceletons for those methods, so you don't need to worry about DLMS_IGNORE_SERVER anymore.
BR,
Mikko
Thanks Mikko!! I fixed it
Thanks Mikko!! I fixed it with your instruction.
Now I will start to probe the library!!
Regards
Alejandro
Hai Mikko..
Hai Mikko..
I was experiencing same issue but with some more errors and got solved by the help of your comment.
My error was as following :
sketch\src\dlms.c.o: In function `dlms_getHdlcData':
sketch\src/dlms.c:2789: undefined reference to `svr_isTarget'
sketch\src\dlms.c.o: In function `dlms_handledGloDedRequest':
sketch\src/dlms.c:4071: undefined reference to `svr_isTarget'
sketch\src/dlms.c:4079: undefined reference to `svr_connected'
sketch\src\gxget.c.o: In function `getLNAccessRights':
sketch\src/gxget.c:624: undefined reference to `svr_getAttributeAccess'
sketch\src/gxget.c:656: undefined reference to `svr_getMethodAccess'
sketch\src\gxget.c.o: In function `getSNAccessRights':
sketch\src/gxget.c:1167: undefined reference to `svr_getAttributeAccess'
sketch\src/gxget.c:1188: undefined reference to `svr_getMethodAccess'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Grasshopper-L082CZ.
I was using Murata grasshopper board with a stm32l08 processor.
My question is what really happened when i uncommented #define DLMS_IGNORE_SERVER in the header file. My doubt is, will ignoring the server makes any issues with data gathering during communication between the dlms meter and my board(grasshopper).
I have only 4 days of experiance in DLMS. Thanks in advance. Regards
Hi,
Hi,
Meter functionality is removed when you define DLMS_IGNORE_SERVER. If you are just reading DLMS meter, then this is the correct way and you can just define DLMS_IGNORE_SERVER.
BR,
Mikko