public void SetRawData(string bluetoothDeviceName, bool status) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.SetRawData(bluetoothDeviceName, status)); } }
public void SetIMUChoosingData(string bluetoothDeviceName, int value) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.SetIMUChoosingData(bluetoothDeviceName, value)); } }
public void ConfirmCalibration(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.ConfirmCalibration(bluetoothDeviceName)); } }
public void ResetFlexors(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.ResetFlexors(bluetoothDeviceName)); } }
public void GetOpenGloveArduinoVersionSoftware(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.GetOpenGloveArduinoVersionSoftware(bluetoothDeviceName)); } }
public void RemoveFlexors(string bluetoothDeviceName, List <int> regions) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.RemoveFlexors(bluetoothDeviceName, regions)); } }
public void AddActuators(string bluetoothDeviceName, List <int> regions, List <int> positivePins, List <int> negativePins) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.AddActuators(bluetoothDeviceName, regions, positivePins, negativePins)); } }
public void TurnOffIMU(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.TurnOffIMU(bluetoothDeviceName)); } }
public void StopCaptureDataFromServer(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.StopCaptureDataFromServer(bluetoothDeviceName)); } }
public void AddActuator(string bluetoothDeviceName, int region, int positivePin, int negativePin) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.AddActuator(bluetoothDeviceName, region, positivePin, negativePin)); } }
public void DisconnectFromBluetoothDevice(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.DisconnectFromBluetoothDevice(bluetoothDeviceName)); } }
public void SaveOpenGloveConfiguration(string bluetoothDeviceName, string configurationName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.SaveOpenGloveConfiguration(bluetoothDeviceName, configurationName)); } }
public void RemoveOpenGloveDeviceFromServer(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.RemoveOpenGloveDeviceFromServer(bluetoothDeviceName)); } }
public void AddOpenGloveDeviceToServer(string bluetoothDeviceName, string configurationName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.AddOpenGloveDeviceToServer(bluetoothDeviceName, configurationName)); } }
public void ActivateActuatorsTimeTest(string bluetoothDeviceName, List <int> regions, List <string> intensities) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.ActivateActuatorsTimeTest(bluetoothDeviceName, regions, intensities)); } }
public void ReadAllDataFromIMU(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.ReadAllDataFromIMU(bluetoothDeviceName)); } }
public void RemoveFlexor(string bluetoothDeviceName, int region) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.RemoveFlexor(bluetoothDeviceName, region)); } }
public void SetLoopDelay(string bluetoothDeviceName, int value) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.SetLoopDelay(bluetoothDeviceName, value)); } }
public void ReadOnlyMagnetometerFromIMU(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.ReadOnlyMagnetometerFromIMU(bluetoothDeviceName)); } }
public void StopOpenGlove(string bluetoothDeviceName) { if (this.WebSocket.IsAlive) { this.WebSocket.Send(MessageGenerator.StopOpenGlove(bluetoothDeviceName)); } }
public Communication(string bluetoothDeviceName, string configurationName, string url) { this.WebSocket = new WebSocket(url); this.WebSocket.OnOpen += OnOpen; this.WebSocket.OnMessage += OnMessage; this.WebSocket.OnClose += OnClose; this.WebSocket.OnError += OnError; this.BluetoothDeviceName = bluetoothDeviceName; this.ConfigurationName = configurationName; MessageGenerator = new MessageGenerator(mainSeparator: ";", secondarySeparator: ",", empty: ""); }
public Communication(string bluetoothDeviceName, string url) { WebSocket = new WebSocket(url); WebSocket.OnOpen += OnOpen; WebSocket.OnMessage += OnMessage; WebSocket.OnClose += OnClose; WebSocket.OnError += OnError; _IsConnectedToBluetoothDevice = false; BluetoothDeviceName = bluetoothDeviceName; MessageGenerator = new MessageGenerator(mainSeparator: ";", secondarySeparator: ",", empty: ""); }
public void ConnectToBluetoothDevice(string bluetoothDeviceName) { this.WebSocket.Send(MessageGenerator.ConnectToBluetoothDevice(bluetoothDeviceName)); }
public void RemoveOpenGloveDevice(string bluetoothDeviceName) { this.WebSocket.Send(MessageGenerator.AddOpenGloveDevice(bluetoothDeviceName)); }
public void StartOpenGlove(string bluetoothDeviceName, string configurationName) { this.WebSocket.Send(MessageGenerator.StartOpenGlove(bluetoothDeviceName, configurationName)); }
public void CalibrateIMU(string bluetoothDeviceName) { this.WebSocket.Send(MessageGenerator.CalibrateIMU(bluetoothDeviceName)); }
public void SetIMUStatus(string bluetoothDeviceName, bool status) { this.WebSocket.Send(MessageGenerator.SetIMUStatus(bluetoothDeviceName, status)); }
public void StartIMU(string bluetoothDeviceName) { this.WebSocket.Send(MessageGenerator.StartIMU(bluetoothDeviceName)); }
public void TurnOffFlexors(string bluetoothDeviceName) { this.WebSocket.Send(MessageGenerator.TurnOffFlexors(bluetoothDeviceName)); }
public void SetThreshold(string bluetoothDeviceName, int value) { this.WebSocket.Send(MessageGenerator.SetThreshold(bluetoothDeviceName, value)); }