主要内容

WebSocket

Communicate with Raspberry Pi® hardware using WebSocket protocol

Use WebSocket protocol to publish and subscribe from data to WebSocket server for fast, bidirectional communication between Raspberry Pi hardware and web clients.

Blocks

WebSocket PublishPublish data to WebSocket server in JSON format
WebSocket SubscribeSubscribe to the JSON data received by a WebSocket server

Model Settings

WebSocket portPort number that WebSocket server uses to transfer data (Since R2021b)

Featured Examples