Repository navigation
pre-release v0.13.0.0-alpha
Pre-release
Pre-release
·
390 commits
to develop
since this release
ciot_c Release
Changes
PlatformIO Example Project:
- Added a complete PlatformIO example for ESP32, including configuration files (
platformio.ini,CMakeLists.txt, partition table, and VSCode settings), source code (main.c,main.h), and documentation for headers, libraries, and tests. This provides a ready-to-use template for ESP32 development with CIOT. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]
New Proxy Example:
- Added a new
proxyexample project with its own CMake configuration and custom CIOT feature configuration header, demonstrating how to build and configure a proxy application using CIOT. [1] [2] [3]
Build System and Directory Structure Updates:
- Updated all relevant build scripts (
CMakeLists.txt,component.mk, and Makefiles) to use the newprotosdirectory structure for protocol buffers and nanopb sources and includes, ensuring builds reference the correct file locations. [1] [2] [3]
Proxy:
- Added option to use an interface as
proxy. This feature allows an client to use an CIoT device as proxy to send an message to another CIoT device as below sample:
ciot_mqtt_client (ciot application) ------> ciot_mqtt_client (ciot device 1) ---proxy---> ciot_uart (ciot device 1) ------> ciot_uart (ciot device 2)
This can be achieved adding an proxy configuration to the message sent by ciot application to ciot device 1
// message sent by ciot application
{
"message": {
"id": 0,
// ciot device 2 interface
"iface": {
"id": 1,
"type": "IFACE_TYPE_SYS"
},
// message to sent to ciot device 2
"data": {
"get_data": {
"type": "DATA_TYPE_INFO"
}
},
// ciot device 1 proxy used to send message
"proxy": {
"iface": {
"id": 9,
"type": "IFACE_TYPE_UART"
}
}
}
}