feat: implement device name handling and update gateway name features

Signed-off-by: Tony <tonylu@tony-cloud.com>
This commit is contained in:
Tony
2026-06-12 01:26:31 +08:00
parent dceede8602
commit 40a0e8e303
11 changed files with 192 additions and 23 deletions
@@ -18,6 +18,7 @@ namespace gateway {
struct GatewayBacnetServerConfig {
uint32_t device_instance{4194303};
std::string device_name{"DALI Gateway"};
std::string channel_name;
std::string local_address;
uint16_t udp_port{47808};
uint32_t task_stack_size{8192};
@@ -91,4 +92,4 @@ class GatewayBacnetServer {
bool started_{false};
};
} // namespace gateway
} // namespace gateway
@@ -48,6 +48,8 @@ bool gateway_bacnet_stack_start(
void gateway_bacnet_stack_cleanup(void);
bool gateway_bacnet_stack_set_device_name(const char* device_name);
bool gateway_bacnet_stack_upsert_object(
gateway_bacnet_object_kind_t object_kind,
uint32_t object_instance,
@@ -74,4 +76,4 @@ void gateway_bacnet_stack_poll(uint16_t elapsed_ms);
#ifdef __cplusplus
}
#endif
#endif