17 SmlListener(std::string server_id, std::string obis_code);
25 void dump_config()
override;
26 std::vector<SmlListener *> sml_listeners_{};
27 void add_on_data_callback(std::function<
void(std::vector<uint8_t>,
bool)> &&callback);
30 void process_sml_file_(
const bytes &sml_data);
31 void log_obis_info_(
const std::vector<ObisInfo> &obis_info_vec);
32 void publish_obis_info_(
const std::vector<ObisInfo> &obis_info_vec);
33 char check_start_end_bytes_(uint8_t byte);
34 void publish_value_(
const ObisInfo &obis_info);
38 uint16_t incoming_mask_ = 0;
SmlListener(std::string server_id, std::string obis_code)
uint8_t get_code(uint8_t byte)
virtual void publish_val(const ObisInfo &obis_info)
Implementation of SPI Controller mode.
std::vector< uint8_t > bytes
bool check_sml_data(const bytes &buffer)