Main Content

WebSocket Publish

Publish data to WebSocket server in JSON format

Add-On Required: This feature requires the Simulink Support Package for Raspberry Pi Hardware add-on.

    Simulink Support Package for Raspberry Pi Hardware / Network


    WebSocket JSON data



    expand all

    The signal data to be published to the WebSocket server, specified as a row vector.

    The block provides an option to add up to 10 Signal input ports that you can use to obtain signal data, with each signal being a row vector.

    Example: [1.5,3]

    Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | Boolean


    expand all

    Specify the port number on the WebSocket server on which the JSON data is hosted.

    Select the total number of input signal connections to the block, which is then converted to JSON format.