examples/communication/serialExample/README.md
This example demonstrates communication with external devices over the serial port. In this example, you will connect to a serial device, read incoming byte packets from the connected device, and send response messages over serial.
This example covers the following functions:
In the code, pay attention to:
serial.listDevices(), which logs a list to the console. Make sure the port ID you specify is the same that your Arduino or other device is connected on.serial.writeBytes( messageToSend.c_str(), (int)messageToSend.size() );serial.readBytes(serialReadBuffer, numBytesToRead );receivedSerialMessages to match the set of data being sent from the serial device. This can be changed to match the size of discrete data packets being sent from serial device.When launching this app, you should see a white screen with text showing the following information:
This example uses no other classes.