Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def post_sensor_data(self, sensors_data):
deviceId = config.get('Config', 'DeviceId')
url = 'devices/%s/streams' % deviceId
data = sensors_data
data["device"] = deviceId
amqp.publish(data)
return 0 #TODO