device
Connection to serial device on Arduino or ESP32 hardware
Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.
Description
This object represents a connection to the serial device connected to Arduino® or ESP32 hardware. You can interact with the serial device using the functions listed in Object Functions.
Creation
Syntax
Description
creates an object that represents the connection between the serial device connected to
the Arduino or ESP32 hardware at the serial port specified by
serialdevObj
= device(arduinoObj
,'SerialPort',SerialPort
)SerialPort
. The Arduino hardware is represented by an arduino
object.
creates an object that represents the connection with additional options specified by one
or more Name,Value pair arguments between the serial device connected to the Arduino or ESP32 hardware.serialdevObj
= device(arduinoObj
,'SerialPort',SerialPort
,Name,Value
)
Input Arguments
Name-Value Arguments
Properties
Examples
More About
Version History
Introduced in R2019b