Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. diff --git a/org/bindings.cpp b/nisse/bindings.cpp
  2. index c8fad14..b5bd18f 100755
  3. --- a/org/bindings.cpp
  4. +++ b/nisse/bindings.cpp
  5. @@ -544,6 +544,14 @@ bool DeRestPluginPrivate::sendConfigureReportingRequest(BindingTask &bt)
  6. maxInterval = 300;
  7. reportableChange16bit = 20;
  8. }
  9. + else if (bt.binding.clusterId == PRESSURE_MEASUREMENT_CLUSTER_ID)
  10. + {
  11. + dataType = deCONZ::Zcl16BitUint;
  12. + attributeId = 0x0000; // measured value
  13. + minInterval = 10;
  14. + maxInterval = 300;
  15. + reportableChange16bit = 20;
  16. + }
  17. else if (bt.binding.clusterId == POWER_CONFIGURATION_CLUSTER_ID)
  18. {
  19. dataType = deCONZ::Zcl8BitUint;
  20. @@ -767,6 +775,10 @@ void DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
  21. {
  22. val = sensor->getZclValue(*i, 0x0000); // measured value
  23. }
  24. + else if (*i == PRESSURE_MEASUREMENT_CLUSTER_ID)
  25. + {
  26. + val = sensor->getZclValue(*i, 0x0000); // measured value
  27. + }
  28. else if (*i == OCCUPANCY_SENSING_CLUSTER_ID)
  29. {
  30. val = sensor->getZclValue(*i, 0x0000); // occupied state
  31. @@ -817,6 +829,7 @@ void DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso
  32. case ILLUMINANCE_MEASUREMENT_CLUSTER_ID:
  33. case TEMPERATURE_MEASUREMENT_CLUSTER_ID:
  34. case RELATIVE_HUMIDITY_CLUSTER_ID:
  35. + case PRESSURE_MEASUREMENT_CLUSTER_ID:
  36. case VENDOR_CLUSTER_ID:
  37. {
  38. DBG_Printf(DBG_INFO_L2, "0x%016llX (%s) create binding for attribute reporting of cluster 0x%04X on endpoint 0x%02X\n",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement