def on_match_device_identify_plugload(self, topic, headers, message, match): device_id = topic.split('/') device_id = device_id[6] update_topic = "identify_device_status_plugload" zmq_topics.identify_device_update(device_id, message, update_topic) _log.debug("Topic: {topic}, Headers: {headers}, " "Message: {message}".format( topic=topic, headers=headers, message=message))
def on_match_device_identify_plugload(self, topic, headers, message, match): device_id = topic.split('/') device_id = device_id[6] update_topic = "identify_device_status_plugload" zmq_topics.identify_device_update(device_id, message, update_topic) _log.debug("Topic: {topic}, Headers: {headers}, " "Message: {message}".format(topic=topic, headers=headers, message=message))
def on_match_device_identify_vav(self, topic, headers, message, match): print "inside subscribe method-identify vav" print "message:" + str(message) device_id = topic.split('/') device_id = device_id[6] print device_id update_topic = "identify_device_status_vav" zmq_topics.identify_device_update(device_id, message, update_topic) #zmq_topics.set_plugload_device_update_status(str(message).strip('[]')) #zmq_topics.set_wifi_3m50_device_update_status(json.loads(json.dumps(message))) _log.debug("Topic: {topic}, Headers: {headers}, " "Message: {message}".format(topic=topic, headers=headers, message=message))