Extensionthis class is for communication via bluetooth serial (dongle). use CytonWifi for the wifi shield.
open port
| port |
a String with the name of the serial port. by default this is |
| baudrate |
it is not recommended to change this. leave it at the default |
| dataAction |
set the OpenBCI: -dataAction |
| replyAction |
set the OpenBCI: -replyAction. note that if none give a default function that just posts will be used. |
| initAction |
set the OpenBCI: -initAction |
| bufferSize |
how many datapoints to store in the internal buffer. |
the SerialPort.
stops main loop and closes the serial port.