You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  1. #pragma once
  2. #include <exception>
  3. #include <fstream>
  4. #include <iostream>
  5. #include <list>
  6. #include <map>
  7. #include <memory>
  8. #include <mutex>
  9. #include <set>
  10. #include <sstream>
  11. #include <string>
  12. #include <vector>
  13. #include "iflytopcpp/core/components/config_template/config_template.hpp"
  14. #define ConfigELEMENT_LIST(marco) \
  15. /**/ \
  16. marco(string /* */, deviceId, "") /**/ \
  17. marco(string /* */, lightControlMode, "auto") /*照明灯控制模式 auto/manual*/ \
  18. marco(int /* */, lightAutoOpenHour, 18) /**/ \
  19. marco(int /* */, lightAutoOpenMin, 0) /**/ \
  20. marco(int /* */, lightAutoCloseHour, 6) /**/ \
  21. marco(int /* */, lightAutoCloseMin, 0) /**/
  22. configTemplateDEFILE_CONFIG_SERVICE2( //
  23. Config, //
  24. ConfigELEMENT_LIST, //
  25. "./configs/config.json", {});