How to get MQTT disconnected callbacks in an application based on the Shadow demo (202011)

@rtel

Other than the readme notes about code standards, and that this new Agent is still green, is there a technical reason this wouldn’t work with iot_ble_mqtt_transport.c?

The file mqtt_demo_ble_transport.c right now seems like it would/could/should be mostly replaced with this agent with the exception of the channel and callback inits. Seems like it would make sense to commonize software esp for demos. Any idea on that?

There is a file at amazon-freertos/libraries/c_sdk/standard/mqtt/src/iot_mqtt_agent.c updated recently for CoreMQTT. Similar function names and responsibilities. Can I assume this is obsolete and only for backcompat?