2 merge requests!17Implement RabbitMQ broker; API Modifications following breaking changes;,!12CO2 Sensor, Refactoring, CAD Files, Update Config from API
logging.info("[MQ Consumer] [+] Successfully transmitted messageID %s (%s) from sensor %s to API"%(data['sensorMetadata']['messageID'],content['timestamp'],data['sensorMetadata']['uid']))
self.channel.basic_ack(delivery_tag=method.delivery_tag)# Ack from queue
return
# Unsucesful
logging.info("[MQ Consumer] [-] API Error (%s) when transmitting messageID %s (%s) from sensor %s to API"%(response.status_code,content['DATA']['sensorMetadata']['messageID'],content['timestamp'],content['DATA']['sensorMetadata']['uid']))