예제 #1
0
 /// <summary>
 /// Requests the party system to send a protocol version message.
 /// </summary>
 /// <remarks>
 /// The party system is expected to return a single protocol version message (0xF9).
 /// This message triggers the <see cref="MessageReceived"/> event. The protocol version
 /// is passed in the <see cref="FirmataMessageEventArgs"/> in a <see cref="ProtocolVersion"/> object.
 /// </remarks>
 internal static void RequestProtocolVersion(this ArduinoSession session)
 {
     //Console.WriteLine($"\r\n{_stopWatch.ElapsedMilliseconds}: RequestProtocolVersion()");
     session.SendCommand(ProtocolVersion);
 }
예제 #2
0
 /// <summary>
 /// Sends a reset message to the party system.
 /// </summary>
 public static void ResetBoard(this ArduinoSession session)
 {
     session.SendCommand(SystemReset);
 }