This method is used to update the Twin property from your device to the cloud. We are calling it a reported property, too.
Javascript
var key = "firmware_version"; var value = "4.0"; iotConnectSDK.UpdateTwin(key,value, function (response) { console.log("Twin update :: ",response); })
Java SDK
Map<String,String> twinPropertyMap = new HashMap<>(); twinPropertyMap.put("humidity", "100"); ioTConnectSDK.updateTwin(twinPropertyMap);
Python
sdk.UpdateTwin(key, value)
DOT NET (C#)
client.UpdateTwin("twin-property","new value");
C Language
UpdateTwin(key,value);