26 Debug.Log(
"Press 1 or 2 to execute some actions");
38 if (Input.GetKeyDown(KeyCode.Alpha1) || Input.GetKeyDown(KeyCode.Keypad1))
40 Debug.Log(
"Sending lights ON");
44 if (Input.GetKeyDown(KeyCode.Alpha2) || Input.GetKeyDown(KeyCode.Keypad2))
46 Debug.Log(
"Sending lights OFF");
62 Debug.Log(
"Connection established");
64 Debug.Log(
"Connection attempt failed or disconnection detected");
66 Debug.Log(
"Message arrived: " + message);
72 Debug.Log(
"Executing teardown");
SerialController serialController
const string SERIAL_DEVICE_CONNECTED
string ReadSerialMessage()
const string SERIAL_DEVICE_DISCONNECTED
void SendSerialMessage(string message)
void SetTearDownFunction(TearDownFunction userFunction)