I have tried to compile the Arduino example code for the guruxDLMS library, but it gave me an error when compiling for the Arduino Mega board. I was using the latest Arduino version and downloaded the latest GuruxDLMS library file.
this is the error code,
In file included from sketch\include/objectarray.h:41:0,
from sketch\include/dlmssettings.h:42,
from sketch\include/serverevents.h:38,
from sketch\GXDLMSClient.h:40,
from C:\Users\devpr\OneDrive\Desktop\GuruxDLMS.c-master\Arduino_IDE\client\client.ino:34:
sketch\include/gxobjects.h:40:10: fatal error: arpa/inet.h: No such file or directory
#include <arpa/inet.h>
^~~~~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Mega or Mega 2560.
Hi,
Hi,
Open gxignore.h file and un-comment this line:
#define DLMS_IGNORE_IP6_SETUP
Arduino is not supporting IPv6 as default. I think how this can be solved so this is not needed.
BR,
Mikko
Thank you, Mikko. Now it is
Thank you, Mikko. Now it is compiling without an error.
Hi,
Hi,
Support for IPv6 is removed as a default for Arduino and now this is not happening anymore.
Get the latest version.
BR,
Mikko