We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffa6dda commit b5d9bb9Copy full SHA for b5d9bb9
azure-eventhubs/examples/iothub_recv.py
@@ -9,10 +9,11 @@
9
from azure import eventhub
10
from azure.eventhub import EventData, EventHubClient, Offset
11
12
+import os
13
import logging
14
logger = logging.getLogger('azure.eventhub')
15
-CONNSTR = os.environ['IOTHUB_CONNECTION_STR']
16
+iot_connection_str = os.environ['IOTHUB_CONNECTION_STR']
17
18
client = EventHubClient.from_iothub_connection_string(iot_connection_str, debug=True)
19
receiver = client.add_receiver("$default", "0", operation='/messages/events')
0 commit comments