Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Errors Compiling "client.ino" On Arduino IDE

Errors compiling "client.ino" on Arduino IDE

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By ademiti , 15 September, 2019
Forums
Gurux.DLMS

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

Profile picture for user Kurumi

Kurumi

6 years 9 months ago

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

ademiti

6 years 8 months ago

Thanks Mikko!! I fixed it

Thanks Mikko!! I fixed it with your instruction.
Now I will start to probe the library!!
Regards
Alejandro

Ananthakrishnan96

5 years 10 months ago

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

Profile picture for user Kurumi

Kurumi

5 years 10 months ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin