Skip to main content
16 events
when toggle format what by license comment
May 22, 2019 at 7:18 history edited chrisl CC BY-SA 4.0
formatted code
May 22, 2019 at 2:50 history edited Mayank CC BY-SA 4.0
added 946 characters in body
May 22, 2019 at 1:39 vote accept Mayank
May 22, 2019 at 1:39 vote accept Mayank
May 22, 2019 at 1:39
May 22, 2019 at 1:39 vote accept Mayank
May 22, 2019 at 1:39
May 21, 2019 at 17:04 comment added tony gil i can move up to 32 bytes from one arduino to another using master/slave architecture. if that helps, i can post an answer
May 21, 2019 at 16:45 comment added Duncan C What do you mean "I can't get many numbers which lies between 0-65536 with that logic"? You can send as many ints as you want. You would send each int as a pair of bytes, as shown in CrossRoads' answer. Each unsigned int can hold a value from 0-65535.
S May 21, 2019 at 16:43 history edited Duncan C CC BY-SA 4.0
changed title to reflect the actual question
S May 21, 2019 at 16:43 history suggested jsotola CC BY-SA 4.0
changed title to reflect the actual question
May 21, 2019 at 16:03 review Suggested edits
S May 21, 2019 at 16:43
May 21, 2019 at 15:50 answer added chrisl timeline score: 3
May 21, 2019 at 14:33 comment added Mayank Using two serial.write (b) is nice idea, but I can't get many numbers which lies between 0-65536 with that logic. And my code is very basic, I'm just using serial.write () to send and serial. read() to receive.. I don't think if it will help you.
May 21, 2019 at 13:46 answer added CrossRoads timeline score: 1
May 21, 2019 at 13:41 comment added chrisl If you want to do this in ASCII (opposing to byte values like Juraj suggested), you should use a message delimiter - a special character that marks the end of a number. You can use the newline character \n for this. Then you can read the digits one by one, adding them together to the big number. For further help, we need to see your code.
May 21, 2019 at 13:35 comment added Juraj hint: with serial.write(b) you get to 256. with two serial.write(b) you get to 256*256 (65536)
May 21, 2019 at 13:31 history asked Mayank CC BY-SA 4.0