本文整理汇总了C#中ZWaveNode.SendDataRequest方法的典型用法代码示例。如果您正苦于以下问题:C# ZWaveNode.SendDataRequest方法的具体用法?C# ZWaveNode.SendDataRequest怎么用?C# ZWaveNode.SendDataRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZWaveNode
的用法示例。
在下文中一共展示了ZWaveNode.SendDataRequest方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Get
public static ZWaveMessage Get(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.SensorBinary,
(byte)Command.SensorBinaryGet
});
}
示例2: Get
public static void Get(ZWaveNode node)
{
node.SendDataRequest(new byte[] {
(byte)CommandClass.Battery,
(byte)Command.BatteryGet
});
}
示例3: Get
public static ZWaveMessage Get(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.WakeUp,
(byte)Command.WakeUpIntervalGet
});
}
示例4: Reset
public static ZWaveMessage Reset(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.Meter,
(byte)Command.MeterReset
});
}
示例5: Get
public static ZWaveMessage Get(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.SwitchMultilevel,
(byte)Command.SwitchMultilevelGet
});
}
示例6: GetOperatingState
public static ZWaveMessage GetOperatingState(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.ThermostatOperatingState,
(byte)Command.BasicGet
});
}
示例7: Get
public static void Get(ZWaveNode node)
{
node.SendDataRequest(new byte[] {
(byte)CommandClass.WakeUp,
(byte)Command.WakeUpIntervalGet
});
}
示例8: Get
public static ZWaveMessage Get(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.DoorLock,
(byte)Command.DoorLockGet
});
}
示例9: Get
public static void Get(ZWaveNode node)
{
node.SendDataRequest(new byte[] {
(byte)CommandClass.DoorLock,
(byte)Command.DoorLockGet
});
}
示例10: GetCapabilityReport
public static ZWaveMessage GetCapabilityReport(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.SwitchColor,
(byte)Command.SwitchColorCapabilityGet
});
}
示例11: GetSupported
public static ZWaveMessage GetSupported(ZWaveNode node)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.Meter,
(byte)Command.MeterSupportedGet
});
}
示例12: GetCount
public static void GetCount(ZWaveNode node, byte commandClass)
{
node.SendDataRequest(new byte[] {
(byte)CommandClass.MultiInstance,
(byte)Command.MultiInstanceCountGet,
commandClass
});
}
示例13: Set
public static ZWaveMessage Set(ZWaveNode node, int value)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.Basic,
(byte)Command.BasicSet,
byte.Parse(value.ToString())
});
}
示例14: Get
public static ZWaveMessage Get(ZWaveNode node, byte scaleType)
{
return node.SendDataRequest(new byte[] {
(byte)CommandClass.Meter,
(byte)Command.MeterGet,
scaleType
});
}
示例15: Get
public static ZWaveMessage Get(ZWaveNode node)
{
byte[] request = new byte[] {
(byte)CommandClass.ManufacturerSpecific,
(byte)Command.ManufacturerSpecificGet
};
return node.SendDataRequest(request);
}