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
29 lines
1.1 KiB
|
|
#pragma once
|
|
#include <exception>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "iflytopcpp/core/components/config_template/config_template.hpp"
|
|
|
|
#define ConfigELEMENT_LIST(marco) \
|
|
/**/ \
|
|
marco(string /* */, deviceId, "") /**/ \
|
|
marco(string /* */, lightControlMode, "auto") /*照明灯控制模式 auto/manual*/ \
|
|
marco(int /* */, lightAutoOpenHour, 18) /**/ \
|
|
marco(int /* */, lightAutoOpenMin, 0) /**/ \
|
|
marco(int /* */, lightAutoCloseHour, 6) /**/ \
|
|
marco(int /* */, lightAutoCloseMin, 0) /**/
|
|
|
|
configTemplateDEFILE_CONFIG_SERVICE2( //
|
|
Config, //
|
|
ConfigELEMENT_LIST, //
|
|
"./configs/config.json", {});
|