Hi,
I generated the credentials as described on the webpage, but az_iot_hub_client_telemetry_get_publish_topic always returned devices/<some garbage characters> and I got the error mqtt_helper: Cloud MQTT input error: -128, followed by a disconnect.
I add "snprintf(topic, sizeof(topic), "devices/%s/messages/events/", CONFIG_AZURE_IOT_HUB_DEVICE_ID);" after the function call to force the topic name, and now it works. But if there is a better solution, I would appreciate it.
Best regards
Mate