receiving numbers bigger than unsigned long
-
Hey there,
I know an arduino is capable of using uint16_t type variables. But how do I get them transfered within the mysensors framework? I know there are way to read int (
message.getint) and long (message.getlong) for usage invoid receive(), but how do I receive an uint64_t number? I couldn't find a documentation about this. But as far as I read the max payload is 25 byte, so it should fit in.Regards,
Anduril -
You can send custom data structures using:
https://github.com/mysensors/MySensors/blob/development/core/MyMessage.cpp#L230... and pick them up using:
https://github.com/mysensors/MySensors/blob/development/core/MyMessage.cpp#L64 -
well yeah thats obvious, my question was more about the specific syntax (but that was not very clear).
Which of the following do I have to use?uint64_t value; send(Mymessage.set(value,8); send(Mymessage.set(value,64); send(Mymessage.set(value,8 byte); ... -
well yeah thats obvious, my question was more about the specific syntax (but that was not very clear).
Which of the following do I have to use?uint64_t value; send(Mymessage.set(value,8); send(Mymessage.set(value,64); send(Mymessage.set(value,8 byte); ...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login