Files
HP_InHand_IG502/Pub_Sub/receiveAttributeUpdate.py
2022-08-20 10:07:01 -05: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"))