73 строки
2.7 KiB
JSON
73 строки
2.7 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"inputs": [
|
|
{
|
|
"id": "device_id",
|
|
"description": "Device ID",
|
|
"type": "promptString"
|
|
},
|
|
{
|
|
"id": "hostname",
|
|
"description": "IoT Hub Hostname",
|
|
"type": "promptString"
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "IoT Telemetry",
|
|
"type": "cppdbg",
|
|
"program": "${workspaceFolder}/build/sdk/samples/iot/paho_iot_hub_telemetry_sample",
|
|
"request": "launch",
|
|
"environment": [
|
|
{"name": "AZ_IOT_HUB_DEVICE_ID","value": "${input:device_id}"},
|
|
{"name": "AZ_IOT_HUB_HOSTNAME","value": "${input:hostname}"},
|
|
{"name": "AZ_IOT_DEVICE_X509_CERT_PEM_FILE_PATH","value": "${workspaceFolder}/cert/device_cert_store.pem"},
|
|
],
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "build"
|
|
},
|
|
|
|
{
|
|
"name": "IoT C2D",
|
|
"type": "cppdbg",
|
|
"program": "${workspaceFolder}/build/sdk/samples/iot/paho_iot_hub_c2d_sample",
|
|
"request": "launch",
|
|
"environment": [
|
|
{"name": "AZ_IOT_HUB_DEVICE_ID","value": "${input:device_id}"},
|
|
{"name": "AZ_IOT_HUB_HOSTNAME","value": "${input:hostname}"},
|
|
{"name": "AZ_IOT_DEVICE_X509_CERT_PEM_FILE_PATH","value": "${workspaceFolder}/cert/device_cert_store.pem"},
|
|
],
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "build"
|
|
},
|
|
|
|
{
|
|
"name": "IoT Methods",
|
|
"type": "cppdbg",
|
|
"program": "${workspaceFolder}/build/sdk/samples/iot/paho_iot_hub_methods_sample",
|
|
"request": "launch",
|
|
"environment": [
|
|
{"name": "AZ_IOT_HUB_DEVICE_ID","value": "${input:device_id}"},
|
|
{"name": "AZ_IOT_HUB_HOSTNAME","value": "${input:hostname}"},
|
|
{"name": "AZ_IOT_DEVICE_X509_CERT_PEM_FILE_PATH","value": "${workspaceFolder}/cert/device_cert_store.pem"},
|
|
],
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "build"
|
|
},
|
|
|
|
{
|
|
"name": "IoT Twin",
|
|
"type": "cppdbg",
|
|
"program": "${workspaceFolder}/build/sdk/samples/iot/paho_iot_hub_twin_sample",
|
|
"request": "launch",
|
|
"environment": [
|
|
{"name": "AZ_IOT_HUB_DEVICE_ID","value": "${input:device_id}"},
|
|
{"name": "AZ_IOT_HUB_HOSTNAME","value": "${input:hostname}"},
|
|
{"name": "AZ_IOT_DEVICE_X509_CERT_PEM_FILE_PATH","value": "${workspaceFolder}/cert/device_cert_store.pem"},
|
|
],
|
|
"cwd": "${workspaceRoot}",
|
|
"preLaunchTask": "build"
|
|
}
|
|
]
|
|
}
|