Sample - IOT Session

The following is a sample Python code for calling QDC public APIs to start and connect interactive session.

  • Available chipsets

IOT sessions have no chipset restrictions. To get the list of available targets, call this QDC public API.

  • Artifacts limitation
TypeArtifacts NumberSuffix
test packageoptional.zip
test scriptN/A
# Section (1): preparing the parameters and submitting the session
session_device_target = "QCS6490" # device target chipset
test_package_file = r"interactive/iot/InteractiveIotTestPackageExample.zip" # optional
ssh_public_key_id = 1001 # ssh key owned by the user, taking 1001 as an example
test_package_response = qdc_api.upload_file(public_api_client, test_package_file, ArtifactType.TESTPACKAGE) # optional
session_target_id = qdc_api.get_target_id(public_api_client, session_device_target)
session_id = qdc_api.submit_session(public_api_client=public_api_client,
target_id=session_target_id,
session_name="Example session",
timeout=600,
session_artifacts=[test_package_response],
ssh_public_key_id=ssh_public_key_id)

SSH Connection


  • SSH connection can refer to SSH.