Installation
Option A — ESP-IDF Component Manager (recommended)
In the project idf_component.yml:
dependencies:
iotmertech/iotmer-sdk-esp-idf: "*"
Then:
idf.py update-dependencies
Option B — Git submodule
git submodule add https://github.com/iotmertech/iotmer-sdk-esp-idf \
components/iotmer-sdk-esp-idf
In the project CMakeLists.txt (before project()):
set(EXTRA_COMPONENT_DIRS components/iotmer-sdk-esp-idf/components)
TLS
Provisioning and MQTT use the ESP x509 certificate bundle (esp_crt_bundle_attach) and standard TLS hostname verification. Any HTTPS front end that serves provisioning and related APIs to devices must present a complete public certificate chain (typical edge / ops concern, not something each firmware image hard-codes).
Minimum app_main setup
#include "nvs_flash.h"
#include "iotmer_client.h"
void app_main(void) {
ESP_ERROR_CHECK(nvs_flash_init());
// ... iotmer_init / iotmer_connect — see Examples
}