Beispiel #1
0
 /// <summary>
 /// 温湿度传感器,湿度回传
 /// </summary>
 /// <param name="protocol"></param>
 private void OnHookMidity(ExploreProtocol protocol)
 {
     protocol.GetParamf(0, out humidityValue);
     mWaitForProtocol = false;
 }
Beispiel #2
0
 /// <summary>
 /// 温湿度传感器,温度回传
 /// </summary>
 /// <param name="protocol"></param>
 private void OnHookRature(ExploreProtocol protocol)
 {
     protocol.GetParamf(0, out temperatureValue);
     mWaitForProtocol = false;
 }
Beispiel #3
0
 /// <summary>
 /// 亮度传感器
 /// </summary>
 /// <param name="protocol"></param>
 private void OnHookLuminance(ExploreProtocol protocol)
 {
     protocol.GetParamf(0, out luminanceValue);
     mWaitForProtocol = false;
 }