This library is a port layer implementation for the Infineon MQTT and HTTP Client libraries to work with the AWS-IoT-Device-SDK-Embedded-C library on Infineon connectivity-enabled MCU platforms. These library APIs are not expected to be called by application directly. See the MQTT and HTTP Client library documentation for more details.
This aws-iot-device-sdk-port layer implementation also supports PAL APIs required by AWS-IoT-Device-SDK-Embedded-C OTA. By default, OTA support is disabled. To enable OTA support follow below steps.
-
Add the
CY_OTA_FLASH_SUPPORT
macro in the application Makefile. The Makefile entry should look like as follows:DEFINES+=CY_OTA_FLASH_SUPPORT
-
Create a .mtb files for anycloud-ota and serial-flash as follows and add .mtb file along with other dependent library .mtb files:
anycloud-ota.mtb:
https://github.com/Infineon/anycloud-ota#release-v4.1.0#$$ASSET_REPO$$/anycloud-ota/
serial-flash.mtb:https://github.com/Infineon/serial-flash#latest-v1.X#$$ASSET_REPO$$/serial-flash/
-
Execute the
make getlibs
command. -
The reference file ./configs/ota_config.h that is bundled with this library provides the default configurations required for the AWS IoT device SDK OTA library. Copy the reference file ./configs/ota_config.h to application root folder, tune the OTA configuaration parameter as required by application and add OTA signing certificate to macro
AWS_IOT_OTA_SIGNING_CERT
. -
Build application using
make build
command.