private string ProcessStreamSet(UriArgParser args) { try { var enable = bool.Parse(args.GetArg("enable")); BrainflowBoard.RequestEnableStreaming(enable); return($"ACK?response=Request enable stream {enable}"); } catch (Exception e) { Logger.AddLog(new LogEventArgs(this, "ProcessStreamSet", e, LogLevel.ERROR)); } return($"NAK?response=bad arguments"); }
/// <summary> /// Start stream button /// </summary> private void buttonStartStream_Click(object sender, EventArgs e) { EnableSettingsButtons(false); Board.RequestEnableStreaming(true); EnableSettingsButtons(true); }