A low cost DIY sound pressure level sensor for enabling environmental noise awareness. https://lukasschwarz.org/noise-sensor
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021
  1. // vim: noai:sw=2:tw=88
  2. #pragma once
  3. #include <Arduino.h>
  4. class NoiseSensorNode {
  5. private:
  6. uint8_t _node_id;
  7. public:
  8. uint32_t _sync_message_ts;
  9. uint16_t* _measurements; // For a dynamic array later.
  10. String sensebox_id;
  11. String sensor_id;
  12. uint8_t missing_answers = 0;
  13. bool _battery_low = 0;
  14. NoiseSensorNode();
  15. NoiseSensorNode(uint8_t node_id, uint8_t size);
  16. };