Skip to content

[BUG] OTA don't start (ota_over_mqtt_demo: This is not an OTA job) #114

@WilliamFrasson

Description

@WilliamFrasson

Describe the bug
after configuring aws for the ota demo update as documented in 5 Perform firmware Over-the-Air Updates with AWS IoT
what i see is that esp32/esp32s3 don't start ota update :

I (11446) ota_over_mqtt_demo: Received Job Document event Received

I (11456) ota_over_mqtt_demo: This is not an OTA job

System information

Hardware board: ESP32-S3 /ESP32
IDE used: 5.2.2
Operating System: Windows
Code version: 69d1309 (after #103)
Project/Demo: temp_sub_pub_and_led_control_demo
If your project is a custom application, please add the relevant code snippet(s) in the section titled "Code to reproduce bug".
Expected behavior

Screenshots or console output

....
I (3666) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
I (3756) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (4886) wifi:idx:0 (ifx:0, e4:8f:34:8f:1c:75), tid:0, ssn:0, winSize:64
> I (5676) core_mqtt_agent_manager: WiFi connected.
> I (5676) app_wifi: Connected with IP Address:192.168.1.15
I (5676) esp_netif_handlers: sta ip: 192.168.1.15, mask: 255.255.255.0, gw: 192.168.1.1

I (5686) main_task: Returned from app_main()
> I (7456) core_mqtt_agent_manager: TLS connection established.
I (7866) coreMQTT: MQTT connection established with the broker.
> I (7866) core_mqtt_agent_manager: Session present: 0

I (7866) sub_pub_unsub_demo: coreMQTT-Agent connected.
I (7866) temp_sub_pub_and_led_control_demo: coreMQTT-Agent connected.
I (7876) sub_pub_unsub_demo: Task "SubPub0" sending subscribe request to coreMQTT-Agent for topic filter: /filter/SubPub0 with id 1
> I (7876) ota_over_mqtt_demo: coreMQTT-Agent connected. Resuming OTA agent.
> I (7896) core_mqtt_agent_manager: coreMQTT-Agent connected.
I (8176) temp_sub_pub_and_led_control_demo: Received subscribe ack for topic /filter/TempSubPubLED containing ID 1
I (8176) sub_pub_unsub_demo: Subscribe 1 for topic filter /filter/SubPub0 succeeded for task "SubPub0".
.....
I (9396) sub_pub_unsub_demo: Unsubscribe 3 for topic filter /filter/SubPub0 succeeded for task "SubPub0".
I (9396) sub_pub_unsub_demo: Task "SubPub0" completed a loop. Delaying before next loop.

> I (11026) ota_over_mqtt_demo: Request Job Document event Received

I (11066) ota_over_mqtt_demo: Sent PUBLISH packet to broker $aws/things/FLTE15/jobs/start-next to broker.

I (11446) coreMQTT: De-serialized incoming PUBLISH packet: DeserializerResult=MQTTSuccess.
I (11446) coreMQTT: State record updated. New state=MQTTPublishDone.
**> I (11446) ota_over_mqtt_demo: Received Job Document event Received

I (11456) ota_over_mqtt_demo: This is not an OTA job**

I (13866) temp_sub_pub_and_led_control_demo: Sending publish request to agent with message "{"temperatureSensor":{ "taskName": "TempSubPubLED", "temperatureValue": 0.000000, "iteration": 1}}" on topic "/filter/TempSubPubLED"

Steps to reproduce bug
Example:
1. "I am using project main branch
2. create the aws requires for the ota update via mqtt: 5 Perform firmware Over-the-Air Updates with AWS IoT
3. "When run on [ ... ], I observed that
> I (11446) ota_over_mqtt_demo: Received Job Document event Received
> I (11456) ota_over_mqtt_demo: This is not an OTA job

Code to reproduce bug
demo application with ota_over_mqtt_demo

Additional context
na

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions