Fix minor typos (#1036)
This commit is contained in:
Родитель
c91cb47f83
Коммит
ada6ab929a
|
@ -20,7 +20,7 @@ class ProvisioningPipelineConfig(BasePipelineConfig):
|
|||
|
||||
:param str hostname: The hostname of the Provisioning hub instance to connect to
|
||||
:param str registration_id: The device registration identity being provisioned
|
||||
:param str id_scope: The identity of the provisoning service being used
|
||||
:param str id_scope: The identity of the provisioning service being used
|
||||
"""
|
||||
super().__init__(hostname=hostname, **kwargs)
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ class MQTTPipeline(object):
|
|||
.append_stage(pipeline_stages_provisioning_mqtt.ProvisioningMQTTTranslationStage())
|
||||
#
|
||||
# AutoConnectStage comes here because only MQTT ops have the need_connection flag set
|
||||
# and this is the first place in the pipeline wherer we can guaranetee that all network
|
||||
# and this is the first place in the pipeline where we can guarantee that all network
|
||||
# ops are MQTT ops.
|
||||
#
|
||||
.append_stage(pipeline_stages_base.AutoConnectStage())
|
||||
|
|
|
@ -89,7 +89,7 @@ def extract_properties_from_dps_response_topic(topic):
|
|||
properties = topic_parts[2]
|
||||
|
||||
# NOTE: we cannot use urllib.parse.parse_qs because it always decodes '+' as ' ',
|
||||
# and the behavior cannot be overriden. Must parse key/value pairs manually.
|
||||
# and the behavior cannot be overridden. Must parse key/value pairs manually.
|
||||
|
||||
if properties:
|
||||
key_value_pairs = properties.split("&")
|
||||
|
|
|
@ -49,7 +49,7 @@ class ProvisioningMQTTTranslationStage(PipelineStage):
|
|||
query_params=urllib.parse.urlencode(query_param_seq, quote_via=urllib.parse.quote),
|
||||
)
|
||||
|
||||
# Dynamically attach the derived MQTT values to the InitalizePipelineOperation
|
||||
# Dynamically attach the derived MQTT values to the InitializePipelineOperation
|
||||
# to be used later down the pipeline
|
||||
op.username = username
|
||||
op.client_id = client_id
|
||||
|
|
|
@ -18,7 +18,7 @@ python scripts/env_setup.py
|
|||
|
||||
This will install not only relevant development and test dependencies, but also an editable install of the source code, which can then have any code changes immediately reflected in the install.
|
||||
|
||||
It is recommended to use [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/install.html) for Unix-based platforms or [virutalenvwrapper-win](https://github.com/davidmarble/virtualenvwrapper-win) for Windows, in order to easily manage custom environments and switch Python versions, however this is optional.
|
||||
It is recommended to use [virtualenvwrapper](https://virtualenvwrapper.readthedocs.io/en/latest/install.html) for Unix-based platforms or [virtualenvwrapper-win](https://github.com/davidmarble/virtualenvwrapper-win) for Windows, in order to easily manage custom environments and switch Python versions, however this is optional.
|
||||
|
||||
## Environment Variables (Optional)
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ currently only supporting the MQTT protocol so it only requires to supply the co
|
|||
|
||||
For x.509 device the v1 SDK required the user to supply the certificates in a call to set_options. Moving forward in the v2
|
||||
SDK, we only require for the user to call the create function with an x.509 object containing the path to the x.509 file and
|
||||
key file with the optional pass phrase if neccessary.
|
||||
key file with the optional pass phrase if necessary.
|
||||
|
||||
- v1
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ This directory contains samples showing how to use the various features of the M
|
|||
|
||||
|
||||
async def main():
|
||||
# Fetch the connection string from an enviornment variable
|
||||
# Fetch the connection string from an environment variable
|
||||
conn_str = os.getenv("IOTHUB_DEVICE_CONNECTION_STRING")
|
||||
|
||||
# Create instance of the device client using the authentication provider
|
||||
|
|
Загрузка…
Ссылка в новой задаче