Main Content

Serial Devices

Read and write to serial devices connected to Arduino® hardware

Create an Arduino object using arduino before you use serial streaming functions.

You can also use Arduino Explorer app to configure the serial communication interface and use the interface to read and write data to serial devices connected to the Arduino hardware.

Functions

deviceConnection to serial device on Arduino or ESP32 hardware (Since R2019b)
readRead data from serial device (Since R2019b)
writeWrite data to serial device (Since R2019b)

Troubleshooting

Serial Device Issues

Tips to fix issues for serial devices.