GanglionWifi:
Filter:
OpenBCI-SuperCollider/Classes (extension) | External Control

GanglionWifi
ExtensionExtension

for communicating with a Ganglion board (4ch)

Description

this class is for communication via wifi osc (wifishield). use GanglionSerial for the bluetooth dongle.

NOTE: does not survive CmdPeriod.

Class Methods

.new

open communication

Arguments:

netAddr

a NetAddr with the ip and port of the wifi shield. by default this is NetAddr("OpenBCI_WifiShieldOSC.local", 13999)

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.

Instance Methods

.netAddr

the NetAddr of the wifi shield.

.close

stops main loop and closes the serial port.

Examples

//TODO