2025-01-23 11:13:58 +08:00
|
|
|
#ifndef SHORT_ADDR_CFG_HPP_
|
|
|
|
|
#define SHORT_ADDR_CFG_HPP_
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
#define BASE_RELATION "/opt/configenv/base_relation.json"
|
|
|
|
|
|
|
|
|
|
class ShortAddrCfg {
|
|
|
|
|
public:
|
|
|
|
|
static int ReadCfg(std::map<uint16_t, int> &short_addr_map);
|
|
|
|
|
static int WriteCfg(std::map<uint16_t, int> &short_addr_map);
|
|
|
|
|
static void ClearCfg();
|
|
|
|
|
};
|
|
|
|
|
|
2024-11-05 14:44:08 +08:00
|
|
|
#endif // SHORT_ADDR_CFG_HPP_
|