Contenido principal

Hardware Serial Port

Port on the Arduino board that is connected to ESP8266

Model Configuration Pane: Hardware Implementation / Hardware board settings / Target hardware resources / WiFi properties

Description

Select the port using which the Arduino® board communicates with the ESP8266. The hardware serial port is the port on the Arduino board that is connected to ESP8266. For more information on serial ports available on different Arduino boards, see Pin Mapping for Arduino Timer-Independent Blocks.

Note

When selecting a hardware serial port, ensure that you select a different port number from the number specified in the Port number parameter of Serial Receive and Serial Transmit blocks.

Dependencies

To enable this option, set the Hardware board to one of the following:

  • Arduino Due

  • Arduino Leonardo

  • Arduino Mega 2560

  • Arduino Mega ADK

  • Arduino Uno

Then, set WiFi hardware to ESP82666.

Settings

Serial 0 (default) | Serial 1 | Serial 2 | Serial 3 | Serial 4 | Serial 5 | Serial 6 | Serial 7

The default value for this parameter is Serial 0.

Programmatic Use

No programmatic use is available.

Version History

Introduced in R2017b