Skip to content

Commit 2542928

Browse files
committed
rename function
1 parent 55fc55e commit 2542928

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

samples/basic_discovery.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def on_connection_resumed(connection, error_code, session_present):
8181
print('connection resumed with error {}, session present {}'.format(error_code, session_present))
8282

8383

84-
# Try endpoints until we find one that works
85-
def connect_to_greengrass():
84+
# Try IoT endpoints until we find one that works
85+
def try_iot_endpoints():
8686
for gg_group in discover_response.gg_groups:
8787

8888
gg_core_tls_options = io.TlsContextOptions.create_client_with_mtls_from_path(args.certificate_path, args.private_key_path)
@@ -113,7 +113,7 @@ def connect_to_greengrass():
113113

114114
exit('All connection attempts failed')
115115

116-
mqtt_connection = connect_to_greengrass()
116+
mqtt_connection = try_iot_endpoints()
117117

118118
if args.mode == 'both' or args.mode == 'subscribe':
119119

0 commit comments

Comments
 (0)