34d2d9caa0
- Introduced GatewayModbusSerialConfig structure to encapsulate serial communication settings. - Added clamping functions for integer and size values to ensure valid configuration ranges. - Updated GatewayModbusConfigFromValue to parse serial configuration from JSON input. - Implemented transport type checking functions for TCP, RTU, ASCII, and Serial. - Enhanced GatewayModbusConfigToValue to include serial configuration in output. Signed-off-by: Tony <tonylu@tony-cloud.com>
22 lines
406 B
CMake
22 lines
406 B
CMake
set(GATEWAY_BRIDGE_REQUIRES
|
|
dali_domain
|
|
dali_cpp
|
|
espressif__cjson
|
|
esp_driver_uart
|
|
freertos
|
|
gateway_cache
|
|
gateway_modbus
|
|
log
|
|
lwip
|
|
nvs_flash
|
|
)
|
|
|
|
idf_component_register(
|
|
SRCS "src/gateway_bridge.cpp"
|
|
INCLUDE_DIRS "include"
|
|
REQUIRES ${GATEWAY_BRIDGE_REQUIRES}
|
|
PRIV_REQUIRES gateway_bacnet
|
|
)
|
|
|
|
set_property(TARGET ${COMPONENT_LIB} PROPERTY CXX_STANDARD 17)
|