Into file main.c of example GuruxDLMSServeExample created several servers. After initialize of first server, its objects copying to other servers by function oa_copy(). Oa_copy() copies elements server.base.objects.data[] from source server to appropriate elements of destination server. Server.base.objects.data have type gxObject**, but this pointer initialized only for first server by function svr_InitObjects() from file exampleserver.c.
How i must initialize pointer for other servers?
Hello!
I've tell about problem in same file. May be i've missing something, but i don't see initialization of pointer lnHdlc.settings.base.objects.data.
Hi,
Hi,
You can do it like in the server example.
https://github.com/Gurux/GuruxDLMS.c/blob/c443da96cb9e29a3ba975b16104b6…
BR,
Mikko
Hello!
Hello!
I've tell about problem in same file. May be i've missing something, but i don't see initialization of pointer lnHdlc.settings.base.objects.data.
With best regards.