필터 지우기
필터 지우기

Where to specify WebSocket IP (Simulink Support Package for Arduino )

조회 수: 7 (최근 30일)
Callum Morrison
Callum Morrison 2020년 10월 27일
댓글: Nirmalkumar Doreraju 2020년 11월 4일
In the docs for both WebSocket Publish and Subscribe, it states "... publishes data from the Arduino® hardware to a WebSocket server identified by an IP address and a port."
Where do I specify this IP address? It is not a parameter for the block.
Thanks

답변 (1개)

Saurav Chaudhary
Saurav Chaudhary 2020년 10월 30일
Refer to the documentation link given below. It contains an example as how to use the Simulink Support Package for Arduino Hardware to publish and subscribe data from various Arduino blocks to a WebSocket server and to read data on a web browser in a WebSocket client. It contains an information as how to configure Audrino IP adresses.
  댓글 수: 2
Callum Morrison
Callum Morrison 2020년 10월 30일
Hi,
I did have a look at that however unless I'm missing something it only explains how to connect to the WebSocket server running on the Arduino. I want to run a WS server on a different device, and have the Arduino connect to that one instead.
Thanks
Nirmalkumar Doreraju
Nirmalkumar Doreraju 2020년 11월 4일
Hi Callum,
With the blocks provided in the Arduino Simulnk Support Package, it creates a websocket server on the hardware itself. You can only create an external websocket client and publish/subscribe to the server running on Arduino.
You cannot have an external websocket server and try to use the blocks in the support package as webocket client.
Thanks,
Nirmal

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by