Installation
Component Manager (recommended)
# idf_component.yml
dependencies:
iotmertech/iotmer: "*"
idf.py update-dependencies
| Package | Registry |
|---|---|
| Core | iotmertech/iotmer |
| BLE (optional) | iotmertech/iotmer_ble |
Git submodule
git submodule add https://github.com/iotmertech/iotmer-sdk-esp-idf components/iotmer-sdk-esp-idf
In CMakeLists.txt (before project()):
set(EXTRA_COMPONENT_DIRS components/iotmer-sdk-esp-idf/components)
Exposes iotmer and iotmer_ble from one tree.
TLS
Provisioning and MQTT use esp_crt_bundle_attach. HTTPS endpoints must present a complete certificate chain.
Minimum setup
#include "nvs_flash.h"
#include "iotmer_client.h"
void app_main(void) {
ESP_ERROR_CHECK(nvs_flash_init());
/* iotmer_init / iotmer_connect — see Quick start */
}