|
18 | 18 | # Required Arguments |
19 | 19 | required.add_argument("--endpoint", required=True, metavar="", dest="input_endpoint", |
20 | 20 | help="IoT endpoint hostname") |
21 | | -optional.add_argument("--port", type=int, default=8883, metavar="", dest="input_port", |
22 | | - help="Port (8883 mTLS, 443 ALPN)") |
23 | 21 | required.add_argument("--cert", required=True, metavar="", dest="input_cert", |
24 | 22 | help="Path to the certificate file to use during mTLS connection establishment") |
25 | 23 | required.add_argument("--pkcs11_lib", required=True, metavar="", dest="input_pkcs11_lib_path", |
|
34 | 32 | help="Slot ID containing the PKCS#11 token to use (optional).") |
35 | 33 | optional.add_argument("--key_label", metavar="", dest="input_pkcs11_key_label", |
36 | 34 | help="Label of private key on the PKCS#11 token (optional).") |
37 | | -optional.add_argument("--ca_file", metavar="", dest="input_ca", |
38 | | - help="Path to optional CA bundle (PEM)") |
39 | 35 | optional.add_argument("--topic", default="test/topic", metavar="", dest="input_topic", |
40 | 36 | help="Topic") |
41 | 37 | optional.add_argument("--message", default="Hello from mqtt5 sample", metavar="", dest="input_message", |
42 | 38 | help="Message payload") |
43 | 39 | optional.add_argument("--count", type=int, default=5, metavar="", dest="input_count", |
44 | 40 | help="Messages to publish (0 = infinite)") |
45 | | - |
46 | 41 | optional.add_argument("--client_id", metavar="", dest="input_clientId", default=f"mqtt5-sample-{uuid.uuid4().hex[:8]}", |
47 | 42 | help="Client ID") |
48 | 43 |
|
@@ -102,8 +97,6 @@ def on_lifecycle_disconnection(lifecycle_disconnect_data: mqtt5.LifecycleDisconn |
102 | 97 | private_key_label=args.input_pkcs11_key_label, |
103 | 98 | cert_filepath=args.input_cert, |
104 | 99 | endpoint=args.input_endpoint, |
105 | | - port=args.input_port, |
106 | | - ca_filepath=args.input_ca, |
107 | 100 | on_lifecycle_stopped=on_lifecycle_stopped, |
108 | 101 | on_lifecycle_connection_success=on_lifecycle_connection_success, |
109 | 102 | on_lifecycle_connection_failure=on_lifecycle_connection_failure, |
|
0 commit comments