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 10 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 10 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

6 years 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

6 years 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

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
  • Service not known error on gprs communication
  • Help Needed: Interfacing Saral 100 Energy Meter with Microcontroller via RS232
  • Connecting Meter to Agent via serial
  • Reading block profile with Compact array
More

Who's new

  • ArthurDaype
  • hirenec11mic
  • Yeyen
  • Virtual
  • joesa4
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin