Skip to content
Commit d195a9d7 authored by Hugues Kamba Mpiana's avatar Hugues Kamba Mpiana
Browse files

aws-ota: Fix demo memory access error



`MQTTAgent_Init()` must be called with arguments that have a lifetime
that extends to the entire run of the program for the `pNetworkBuffer`
and `pTransportInterface` parameters as the memory addresses are used
later on internally by the MQTT agent.

This commit ensures the arguments passed to `MQTTAgent_Init()` for
those parameters have a lifetime that extends to the entire run of
the program by making them static variables.

Signed-off-by: Hugues Kamba Mpiana's avatarHugues Kamba-Mpiana <hugues.kambampiana@arm.com>
parent be4e7fb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment