chipKIT® Development Platform

Inspired by Arduino™

Messenger Lib Error

Created Tue, 17 Apr 2012 18:16:57 +0000 by derFloh


Tue, 17 Apr 2012 18:16:57 +0000


i am using the Messenger Library for serial communication. Unfortunately it gives me a bunch of errors.

does anybody know, what to do?! i used this within the arduino IDE before without problems... exactly this sketch i am trying to compile :(

thanks in advance cheers flo

Ryan K

Tue, 17 Apr 2012 23:06:32 +0000


It looks like strlcpy and strtok_r aren't included in MPIDE.

n = strlcpy(dst, src, len); n = snprintf(dst, len, "%s", src);

Those two lines should be equivalent just replace those strlcpy lines with snprintf, source:

As for strtok_r I believe you should be able to change it from:

if (dumped) current = strtok_r(temppointer,token,&last);


if (dumped) current = strtok(temppointer,token);

and it should function equivalently. Let me know if it shows the behavior you expect. I haven't compiled this nor tested them I just looked up eqivalent functions for the two.

Best Regards, Ryan K Digilent


Wed, 18 Apr 2012 20:20:51 +0000

hello ryan,

thank you so much! this fixes the errors. unfortunately i`m not able to get my serial connection started. :cry: until now i have no idea for this issue but i think its not related to this modifications...

EDIT: so what happens is: the code in the loop() is executed until i open my program connecting to the serial connection. when i close the program, the loop is executed faultless. this issue appears although i do not use the messenger lib.

does anybody know what this means?! thanks flo