Skip to main content

getPortBaud

Description​

This function gets baudrate of the serial port.

Syntax​

  • getPortBaud()

Parameters​

  • None

Returns​

  • Baudrate of the serial port. Data type : unsigned long

Example​

const int DXL_DIR_PIN = 2;
Dynamixel2Arduino dxl(Serial1, DXL_DIR_PIN);
Serial.print(dxl.getPortBaud());