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

2 ビュー (過去 30 日間)
Callum Morrison
Callum Morrison 2020 年 10 月 27 日
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 Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by