Skip to content

Commit b5d9bb9

Browse files
committed
1 parent ffa6dda commit b5d9bb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

azure-eventhubs/examples/iothub_recv.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
from azure import eventhub
1010
from azure.eventhub import EventData, EventHubClient, Offset
1111

12+
import os
1213
import logging
1314
logger = logging.getLogger('azure.eventhub')
1415

15-
CONNSTR = os.environ['IOTHUB_CONNECTION_STR']
16+
iot_connection_str = os.environ['IOTHUB_CONNECTION_STR']
1617

1718
client = EventHubClient.from_iothub_connection_string(iot_connection_str, debug=True)
1819
receiver = client.add_receiver("$default", "0", operation='/messages/events')

0 commit comments

Comments
 (0)