Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def update_device_state(results, source, doorState, doorStateDesc):
global module_client
# update twin properties
reported_patch = {"doorState": doorState}
reported_patch = {"doorStateDesc": doorStateDesc}
reported_patch = {"doorStateSource": source}
except Exception as e:
AzureIoTLogger.Log ( "update_device_state - Unexpected error %s " % e )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment