diff --git a/.docs/usage-overview.md b/.docs/usage-overview.md index 15056d04945b9f0c0dec853425c67df1a1d5f1ee..3b5820d508299cecf249e834ebb1424abe3b50e9 100644 --- a/.docs/usage-overview.md +++ b/.docs/usage-overview.md @@ -559,11 +559,15 @@ A user wants to import live data from e.g. sensor measurements fast and without import pika import json - connection = pika.BlockingConnection() + credentials = pika.credentials.PlainCredentials('foo', 'bar') + # credentials = pika.credentials.PlainCredentials('', 'ACCESS_TOKEN') + parameters = pika.ConnectionParameters('localhost', 5672, '/', credentials) + connection = pika.BlockingConnection(parameters) channel = connection.channel() channel.basic_publish(exchange='dbrepo', routing_key='dbrepo.test_fiyg.dabube_water_levels', body=json.dumps({"data":{"column1":"value1","column2":"value2"}})) + print(" [x] Sent tuple!") connection.close() ```