// Sender uint8_t mypayload[10]; if(...) publishdata(Alarm, mypayload, 10);
// Receiver uint8_t mypayload_len; uint8_t mypayload[10]; if(subscribedata(Alarm, mypayload, &mypayload_len)) { }
Hi Roman,
the publish use a small queue of the RAM and that's why you cannot send more data.
The size is defined here
https://github.com/souliss/souliss/blob/friariello/conf/frame/MaCacoCfg.h#L268
Here is defined the maximum size while sending a publish
https://github.com/souliss/souliss/blob/friariello/frame/MaCaco/MaCaco.cpp#L821
You should be able to send larger frames increasing that constant value, but anyhow you never have to build a frame larger that the MaCaco_PAYLOAD.
Regards,
Dario.
From Mobile.
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/b606d8c9-efd5-46b8-a685-1f67a7d3d21a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MaCaco_PAYLOAD
bytes." - in peer2peer section) ? I also faced with this problem and the current wording is a bit confusing. I assumed that the max length is MaCaco_PAYLOAD (41bytes)--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/a1688029-4f02-4c4c-9912-50d2b21a20de%40googlegroups.com.