694217eb2c
- Created CMakeLists.txt for the Gateway Modbus component. - Added header file `gateway_modbus.hpp` defining configuration structures, enums, and point structures. - Implemented the `gateway_modbus.cpp` source file containing the logic for managing Modbus points, including reading and writing operations. - Introduced utility functions for converting configurations to and from DaliValue, and for handling Modbus space and access types. - Established a bridge class to manage Modbus points and their interactions with the DaliBridgeEngine. Co-authored-by: Copilot <copilot@github.com>
21 lines
386 B
CMake
21 lines
386 B
CMake
set(GATEWAY_BRIDGE_REQUIRES
|
|
dali_domain
|
|
dali_cpp
|
|
espressif__cjson
|
|
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)
|