You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to publish an array of doubles by converting it to const char array using memcpy.
The problem is that if I set the array size bigger and bigger, the subscriber will get wrong data: about first 100 values are sent correctly, but from the next becomes garbage data.
After struggling, I came to a conclusion that there is a problem setting a message buffer when I'm trying to publish data too large.
So I suggest, could you add ability to publish message with the message length something like this:
voidpublish(constchar* subject, constchar* msg, int msg_length);
I appreciate your work.
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to publish an array of doubles by converting it to const char array using
memcpy
.The problem is that if I set the array size bigger and bigger, the subscriber will get wrong data: about first 100 values are sent correctly, but from the next becomes garbage data.
After struggling, I came to a conclusion that there is a problem setting a message buffer when I'm trying to publish data too large.
So I suggest, could you add ability to publish message with the message length something like this:
I appreciate your work.
The text was updated successfully, but these errors were encountered: