thanks for your fast response.
I have done what you suggest as per your previous reply. but after that I compiled the program in arduino but again another errors are occur in the error box.
look error:
C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino: In function 'void loop()':
C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:435:61: warning: invalid conversion from 'char*' to 'unsigned char*' [-fpermissive]
if (svr_handleRequest2(&settings, tmp, available, &reply) != 0)
^
In file included from C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:38:0:
sketch\include/server.h:54:9: note: initializing argument 2 of 'int svr_handleRequest2(dlmsServerSettings*, unsigned char*, short unsigned int, gxByteBuffer*)'
int svr_handleRequest2(
^
sketch\src\bytebuffer.c:246:5: error: redefinition of 'bb_setUInt8ByIndex'
int bb_setUInt8ByIndex(
^
sketch\src\bytebuffer.c:210:5: note: previous definition of 'bb_setUInt8ByIndex' was here
int bb_setUInt8ByIndex(
^
sketch\src\bytebuffer.c: In function 'bb_setUInt8ByIndex':
sketch\src\bytebuffer.c:252:15: warning: implicit declaration of function 'bb_allocate' [-Wimplicit-function-declaration]
int ret = bb_allocate(arr, index, 1);
^
sketch\src\notify.c: In function 'notify_parsePush':
sketch\src\notify.c:242:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
arr_push(items, key_init(obj, (void*)(unsigned long long)index));
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
CAN YOU GIVE ME THE WITHOUT ERROR FILE OF ARDUINO PROGRAM ?
lot a thanks for your previous response.
MN VASANI..
Hi,
Hi,
You need to copy include src folders from development folder to target directory where server.ino file is.
BR,
Mikko
thanks for your fast response
thanks for your fast response.
I have done what you suggest as per your previous reply. but after that I compiled the program in arduino but again another errors are occur in the error box.
look error:
C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino: In function 'void loop()':
C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:435:61: warning: invalid conversion from 'char*' to 'unsigned char*' [-fpermissive]
if (svr_handleRequest2(&settings, tmp, available, &reply) != 0)
^
In file included from C:\Users\Admin\Desktop\GuruxDLMS.c-master\Arduino_IDE\server\server.ino:38:0:
sketch\include/server.h:54:9: note: initializing argument 2 of 'int svr_handleRequest2(dlmsServerSettings*, unsigned char*, short unsigned int, gxByteBuffer*)'
int svr_handleRequest2(
^
sketch\src\bytebuffer.c:246:5: error: redefinition of 'bb_setUInt8ByIndex'
int bb_setUInt8ByIndex(
^
sketch\src\bytebuffer.c:210:5: note: previous definition of 'bb_setUInt8ByIndex' was here
int bb_setUInt8ByIndex(
^
sketch\src\bytebuffer.c: In function 'bb_setUInt8ByIndex':
sketch\src\bytebuffer.c:252:15: warning: implicit declaration of function 'bb_allocate' [-Wimplicit-function-declaration]
int ret = bb_allocate(arr, index, 1);
^
sketch\src\notify.c: In function 'notify_parsePush':
sketch\src\notify.c:242:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
arr_push(items, key_init(obj, (void*)(unsigned long long)index));
^
exit status 1
Error compiling for board Arduino/Genuino Uno.
CAN YOU GIVE ME THE WITHOUT ERROR FILE OF ARDUINO PROGRAM ?
lot a thanks for your previous response.
MN VASANI..
Hi,
Hi,
Get the latest version from GitHub. Open gxignore.h and uncomment all the functionality that you don't need. It saves a lot of flash memory.
BR,
Mikko