Return to SDK Examples for Microchip Studio
32#define SerialPort ConnectorUsb
35#define serialBaudRate 9600
43 SerialPort.Mode(Connector::USB_CDC);
44 SerialPort.Speed(serialBaudRate);
45 SerialPort.PortOpen();
58 XBee.
Send(
"Hello XBee");
64 SerialPort.SendLine(XBee.
CharGet());
bool Send(const char *buffer, size_t bufferSize)
Send the array of characters out the port.
Definition ISerial.h:173
int16_t CharGet() override
Attempt to read the next character from serial channel.
virtual void PortOpen() override
int32_t AvailableForRead() override
virtual bool Speed(uint32_t bitsPerSecond) override
Change the baud rate for the port.