Skip to content

[BUG] On receiving OTA .../update/accepted messages, these seem to be unhandled #28

@txf-

Description

@txf-

Describe the bug
When running OTA accepted messages, from AWS don't seem to be handled. I'm getting lots of warnings.

W (779115) core_mqtt_agent_manager: WARN:  Received an unsolicited publish from topic $aws/things/mything/jobs/AFR_OTA-tt3/update/accepted
I (779185) ota_over_mqtt: Sent PUBLISH packet to broker $aws/things/mything/jobs/AFR_OTA-tt3/update to broker.
I (779185) ota_over_mqtt: OTA Event processing completed. Freeing the event buffer to pool.
I (779195) ota_over_mqtt: Sent PUBLISH packet to broker $aws/things/mything/streams/AFR_OTA-9ca58abd-ec6d-4d6d-8e9f-cd605cda9f1e/get/cbor to broker.

System information
Hardware board: - Esp32 WROVER (v3) custom board.
IDE used: VSCode with IDF extension
Operating System: [ Windows 11 WSL2 with Docker image ]
Code version: 202212.00 release, IDF 4.4.3
Project/Demo: ota_over_mqtt_demo
Expected behavior
is there supposed to be an accepted handler

Steps to reproduce bug
Run OTA, I changed TLS connection to be non-blocking and also had to set otaconfigMAX_NUM_BLOCKS_REQUEST = 1 (OTA seems to kill the TLS connection if I leave it at the default value of 8)

Code to reproduce bug
add .non_block = true to xEspTlsConfig in components/esp-aws-iot/libraries/coreMQTT/port/network_transport/network_transport.c

set #define otaconfigOTA_UPDATE_STATUS_FREQUENCY 1U in components/esp-aws-iot/libraries/ota-for-aws-iot-embedded-sdk/config/ota_config.h

Change CONFIG_MAX_NUM_BLOCKS_REQUEST to 1 in sdkconfig

otherwise run the demo. IIRC this also appears with completely default settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions