in content/device.js [111:119]
async desiredPropertyAck(patch, status, statusMsg) {
// acknowledge the desired property back to IoT Central
const patchJSON = JSON.parse(patch)
const keyName = Object.keys(patchJSON)[0]
let reported_payload = {}
reported_payload[keyName] = {"value": patchJSON[keyName], "ac":status,"ad":statusMsg,"av":patchJSON['$version']}
await client.updateTwin(JSON.stringify(reported_payload))
this.writeToConsole("Desired property patch acknowledged: " + "<pre>" + this.syntaxHighlight(reported_payload) + "</pre>", "cyan")
},