Send multiple bytes using Arduino UDP send block?
이전 댓글 표시
Is it possible to send more than one byte of data in a UDP message using the Arduino UDP send block from the Support package from Arduino hardware?
답변 (1개)
Walter Roberson
2015년 7월 12일
0 개 추천
Yes. Up to 24 bytes if you are using the Ethernet Shield; I do not know the limit if you are not using the Ethernet Shield. http://www.mathworks.com/help/supportpkg/arduino/ug/udpsend.html
댓글 수: 2
Walter Roberson
2015년 7월 12일
Possibly this example will help: http://www.mathworks.com/help/supportpkg/arduino/examples/using-ethernet-shield-with-arduino-hardware.html and possibly the same is http://www.mathworks.com/examples/simulink/4512-using-ethernet-shield-with-arduino-reg-due-hardware
I see from another page that you might need a "pack block"; see http://www.mathworks.com/matlabcentral/answers/99695-how-is-binary-data-formatted-when-sending-through-udp-send-block-of-an-xpc-target
카테고리
도움말 센터 및 File Exchange에서 Messages에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!