feat: implement device name handling and update gateway name features
Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <set>
|
||||
@@ -41,6 +42,7 @@ struct GatewayBridgeServiceConfig {
|
||||
uint32_t knx_task_stack_size{12288};
|
||||
UBaseType_t knx_task_priority{5};
|
||||
std::optional<GatewayKnxConfig> default_knx_config;
|
||||
std::function<std::string()> gateway_device_name_provider;
|
||||
};
|
||||
|
||||
struct GatewayBridgeHttpResponse {
|
||||
@@ -62,6 +64,7 @@ class GatewayBridgeService {
|
||||
GatewayBridgeHttpResponse handlePost(const std::string& action, int gateway_id,
|
||||
const std::string& body);
|
||||
std::string handleTransportRequest(uint8_t gateway_id, std::string_view request);
|
||||
void handleGatewayNameChanged(uint8_t gateway_id);
|
||||
|
||||
private:
|
||||
struct ChannelRuntime;
|
||||
|
||||
Reference in New Issue
Block a user