Files
HP_InHand_IG502/code snippets/receiveAttributeUpdate.py
2023-12-14 13:16:36 -06:00

9 lines
313 B
Python

import json
from common.Logger import logger
#v1/devices/me/attributes
def receiveAttributeUpdate(topic, payload):
#Attribute was updated/added server side needs to be updated/added locally
logger.info(topic)
logger.info(json.loads(payload))
logger.info(json.loads(payload)["shared"].get("test"))