Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

Arduino UDP Send

Send UDP message to remote interface

Library

Simulink Support Package for Arduino Hardware/Ethernet Shield

Description

Send a UDP message to a remote interface identified by the remote IP address and remote port parameters.

Use this block when the transmission speed is of higher priority than the transmission reliability or the order of messages.

The Arduino Ethernet Shield uses the following pins on different Arduino board variants.

  • Arduino Mega 2560 – pins 50 to 53.

    Arduino Uno – pins 10 to 13.

This block input accepts uint8 values.

During simulations without the hardware, this block does nothing. See Block Produces Zeros or Does Nothing in Simulation

Dialog Box

Remote IP Address

Enter the IP address of the remote interface to which you want to send UDP messages.

Remote port

Enter the remote port of the remote interface to which you want to send UDP messages. The remote IP port numbers range from 0 to 65535.

Local port

Enter the local port number from which you want to send UDP messages. The local IP port numbers range from 0 to 65535.

    Note:   To change the Target hardware parameter, select Tools > Run on Target Hardware > Options.

See Also

| |

External Web Sites

Was this topic helpful?