Beispiel #1
0
 /// <summary>
 /// Toggles whether the Bluetooth manager should be streaming data.
 /// </summary>
 /// <param name="stream"> Whether the stream should be open.</param>
 public void set_stream(bool stream)
 {
     if (stream)
     {
         records.flush();
         bt_manager.start_streaming();
     }
     else
     {
         System.Diagnostics.Debug.WriteLine(IMU_number + ":" + "END");
         bt_manager.send_data("M0dg");
         bt_manager.stream_open = false;
     }
 }