Hi,
I'm trying to compile the arduino server (with arduino ide 1.8.13) with the last version (https://github.com/Gurux/GuruxDLMS.c), first I solve the problem with the inet.h, but then de IDE shows me the follow compilations errors:
"In file included from sketch/include/gxobjects.h:54:0,
from sketch/include/objectarray.h:41,
from sketch/include/dlmssettings.h:42,
from sketch/include/serverevents.h:38,
from sketch/GXDLMSServer.h:38,
from /home/jorge/Documentos/GuruxDLMS/Arduino_IDE/server/server.ino:35:
sketch/include/gxarray.h:103:9: note: declared here
int arr_getByIndex(
^~~~~~~~~~~~~~
/home/jorge/Documentos/GuruxDLMS/Arduino_IDE/server/server.ino: In function 'DLMS_SOURCE_DIAGNOSTIC svr_validateAuthentication(dlmsServerSettings*, DLMS_AUTHENTICATION, gxByteBuffer*)':
/home/jorge/Documentos/GuruxDLMS/Arduino_IDE/server/server.ino:1931:58: warning: invalid conversion from 'unsigned char*' to 'const char*' [-fpermissive]
GXTRACE(PSTR("Valid low level password."), password->data);
~~~~~~~~~~^~~~
/home/jorge/Documentos/GuruxDLMS/Arduino_IDE/server/server.ino:274:6: note: initializing argument 2 of 'void GXTRACE(const char*, const char*)'
void GXTRACE(const char* str, const char* data)
^~~~~~~
exit status 1
'gxUser' does not name a type; did you mean 'gxKey'?"
Hi,
Hi,
You need to open gxignore.h file and uncomment #define DLMS_IGNORE_MALLOC
This example is not using mallow and because of the lack of compiler arguments there Is no way to define this in Arduino IDE.
BR,
Mikko