Skip to content

Commit

Permalink
Fix 404 url (#283)
Browse files Browse the repository at this point in the history
* Fix 404 url

* Add a short delay when querying Connection String
  • Loading branch information
formulahendry authored Mar 11, 2019
1 parent e72d4f2 commit b27d858
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Time interval in seconds for tree view auto refresh, auto refresh has to be enab
- [Create an IoT hub using the Azure IoT Hub Toolkit for Visual Studio Code](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-create-use-iot-toolkit)
- [Use Azure IoT Hub Toolkit to send and receive messages between your device and IoT Hub](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-vscode-iot-toolkit-cloud-device-messaging)
- [Use Azure IoT Hub Toolkit for Azure IoT Hub device management](https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-device-management-iot-toolkit)
- [Quickly build your Azure IoT application with Node.js, Python or REST API](https://blogs.msdn.microsoft.com/iotdev/2018/08/08/quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/)
- [Quickly build your Azure IoT application with Node.js, Python or REST API](https://devblogs.microsoft.com/iotdev/azure-iot-toolkit-1-2-0-quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/)
- [Azure IoT Hub Toolkit supports C#, Go, Java, Node.js, PHP, Python and Ruby to develop Azure IoT application in VS Code](https://blogs.msdn.microsoft.com/iotdev/2018/08/31/c-go-java-node-js-php-python-or-ruby-choose-your-favorite-language-to-develop-azure-iot-application-in-vs-code/)
- [Use VS Code as IoT Hub Device Simulator](https://blogs.msdn.microsoft.com/iotdev/2018/07/12/use-vs-code-as-iot-hub-device-simulator-say-hello-to-azure-iot-hub-in-5-minutes/)
- [Use VS Code to call Azure IoT Hub REST APIs](https://blogs.msdn.microsoft.com/iotdev/2018/07/19/call-azure-iot-hub-rest-apis-in-vs-code/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "azure-iot-toolkit",
"displayName": "Azure IoT Hub Toolkit",
"description": "Interact with Azure IoT Hub, IoT Device Management, IoT Edge Management, IoT Hub Device Simulation, IoT Hub Code Generation",
"version": "2.4.0-rc",
"version": "2.4.0-rc2",
"publisher": "vsciot-vscode",
"aiKey": "0caaff90-cc1c-4def-b64c-3ef33615bc9b",
"icon": "logo.png",
Expand Down
4 changes: 2 additions & 2 deletions resources/welcome/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h3 id="monitor-d2c">Monitor device-to-cloud (D2C) message</h3>
<img src="https://raw.githubusercontent.com/wiki/Microsoft/vscode-azure-iot-toolkit/images/stopmonitor.png" alt="stop monitor"
/>
<h3 id="generate-app">Generate Azure IoT application</h3>
You could also use your favorite programing language (e.g. C#, Go, Java, Node.js, PHP, Python and Ruby) to <a href="https://blogs.msdn.microsoft.com/iotdev/2018/08/08/quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/">quickly generate an Azure IoT application</a>.
You could also use your favorite programing language (e.g. C#, Go, Java, Node.js, PHP, Python and Ruby) to <a href="https://devblogs.microsoft.com/iotdev/azure-iot-toolkit-1-2-0-quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/">quickly generate an Azure IoT application</a>.
<ol>
<li>Right-click your device and select
<strong>Generate Code</strong>
Expand Down Expand Up @@ -209,7 +209,7 @@ <h3>Resources</h3>
<a href="https://channel9.msdn.com/Shows/Internet-of-Things-Show/Azure-IoT-Toolkit-extension-for-Visual-Studio-Code">Channel 9 video: Walkthrough of Azure IoT Hub Toolkit extension</a>
</div>
<div>
<a href="https://blogs.msdn.microsoft.com/iotdev/2018/08/08/quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/">Quickly build your Azure IoT application with Node.js, Python or REST API</a>
<a href="https://devblogs.microsoft.com/iotdev/azure-iot-toolkit-1-2-0-quickly-build-your-azure-iot-application-in-vs-code-with-node-js-python-or-rest-api/">Quickly build your Azure IoT application with Node.js, Python or REST API</a>
</div>
<div>
<a href="https://github.com/Microsoft/vscode-azure-iot-toolkit/wiki/Quickstart-Node.js">Create and control an IoT device connected to an IoT hub (Node.js)</a>
Expand Down
18 changes: 11 additions & 7 deletions test/utility.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ suite("Utility Tests ", () => {
this.timeout(5 * 1000);
let config = Utility.getConfiguration();
config.update(Constants.IotHubConnectionStringKey, TestConstants.IotHubConnectionString, true).then(() => {
Utility.getConnectionString(Constants.IotHubConnectionStringKey, Constants.IotHubConnectionStringTitle).then((IotHubConnectionString) => {
assert.equal(IotHubConnectionString, TestConstants.IotHubConnectionString);
done();
});
setTimeout(() => {
Utility.getConnectionString(Constants.IotHubConnectionStringKey, Constants.IotHubConnectionStringTitle).then((IotHubConnectionString) => {
assert.equal(IotHubConnectionString, TestConstants.IotHubConnectionString);
done();
});
}, 300);
});
});

Expand All @@ -50,9 +52,11 @@ suite("Utility Tests ", () => {
this.timeout(5 * 1000);
let config = Utility.getConfiguration();
config.update(Constants.IotHubConnectionStringKey, TestConstants.InvalidIotHubConnectionString, true).then(() => {
let IotHubConnectionString = Utility.getConnectionStringWithId(Constants.IotHubConnectionStringKey);
assert.equal(IotHubConnectionString, null);
done();
setTimeout(() => {
let IotHubConnectionString = Utility.getConnectionStringWithId(Constants.IotHubConnectionStringKey);
assert.equal(IotHubConnectionString, null);
done();
}, 300);
});
});

Expand Down

0 comments on commit b27d858

Please sign in to comment.