I tried a simple method to constructed the message like this {"topic": {value}}. Following is the message on Azure Cloud Shell. I think Azure TSI seems to accept this payload format.
{
"event": {
"origin": "IntelGateway",
"module": "PyModule",
"interface": "",
"component": "",
"properties": {
"application": {}
},
"payload": {
"N/304511aed4fa/solarcharger/256/Dc/0/Voltage": 46.5099983215332
}
}
}
Please let me know if there is a better way of sending mqtt topic and value?