Skip to content

Commit bb3b98a

Browse files
committed
remove command_line_utils.py
1 parent ac73022 commit bb3b98a

File tree

2 files changed

+2
-934
lines changed

2 files changed

+2
-934
lines changed

samples/basic_discovery.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0.
33

4-
import time
5-
import json
4+
import time, json
65
from awscrt import io, http
76
from awscrt.mqtt import QoS
87
from awsiot.greengrass_discovery import DiscoveryClient
98
from awsiot import mqtt_connection_builder
109

11-
# from utils.command_line_utils import CommandLineUtils
12-
1310
allowed_actions = ['both', 'publish', 'subscribe']
1411

15-
# cmdData is the arguments/input from the command line placed into a single struct for
16-
# use in this sample. This handles all of the command line parsing, validating, etc.
17-
# See the Utils/CommandLineUtils for more information.
18-
# cmdData = CommandLineUtils.parse_sample_input_basic_discovery()
19-
2012
# --------------------------------- ARGUMENT PARSING -----------------------------------------
2113
import argparse, uuid
2214

2315
def parse_sample_input():
2416
parser = argparse.ArgumentParser(
25-
description="MQTT5 pub/sub sample (mTLS).",
17+
description="Greengrass basic discovery",
2618
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
2719
)
2820

@@ -58,8 +50,6 @@ def parse_sample_input():
5850

5951
# --------------------------------- ARGUMENT PARSING END -----------------------------------------
6052

61-
# [--mode <mode>]
62-
6353
tls_options = io.TlsContextOptions.create_client_with_mtls_from_path(args.input_cert, args.input_key)
6454
if (args.input_ca is not None):
6555
tls_options.override_default_trust_store_from_path(None, args.input_ca)

0 commit comments

Comments
 (0)