pms5003/PMS5003/Pms5003Constants.cs

15 lines
564 B
C#
Raw Normal View History

2021-04-10 14:48:03 +00:00
namespace PMS5003
{
/// <summary>
/// The Pms5003Constants defines constants required by the PMS5003 communication protocol.
/// </summary>
public class Pms5003Constants
{
public static readonly int DefaultBaudRate = 9600;
public static readonly int StartByte1 = 0x42;
public static readonly int StartByte2 = 0x4d;
public static readonly int CommandReadInPassive = 0xe2;
public static readonly int CommandChangeMode = 0xe1;
public static readonly int CommandSleep = 0xe4;
}
}