Skip to content

Commit d45749d

Browse files
noerogJon Wayne Parrott
authored andcommitted
* Changes to running the Python MQTT example (#1164)
* Remove required flag from message_type * Add 443 port as option for mqtt_bridge_port
1 parent de05c34 commit d45749d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iot/api-client/mqtt_example/cloudiot_mqtt_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def parse_command_line_args():
119119
'--message_type',
120120
choices=('event', 'state'),
121121
default='event',
122-
required=True,
123122
help=('Indicates whether the message to be published is a '
124123
'telemetry event or a device state message.'))
125124
parser.add_argument(
@@ -128,6 +127,7 @@ def parse_command_line_args():
128127
help='MQTT bridge hostname.')
129128
parser.add_argument(
130129
'--mqtt_bridge_port',
130+
choices=(8883, 443),
131131
default=8883,
132132
type=int,
133133
help='MQTT bridge port.')

0 commit comments

Comments
 (0)