From e634b9607445e94a4771d2cc0d473bbb9fd4c313 Mon Sep 17 00:00:00 2001 From: Dima Landiak Date: Mon, 30 Oct 2017 18:48:46 +0200 Subject: [PATCH 1/2] web-socket example added --- docs/iot-gateway/mqtt.md | 2 +- docs/user-guide/resources/web-socket.html | 65 +++++++++++++++++++++++ docs/user-guide/telemetry.md | 20 ++++++- 3 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 docs/user-guide/resources/web-socket.html diff --git a/docs/iot-gateway/mqtt.md b/docs/iot-gateway/mqtt.md index 31881c22e6..3408586876 100644 --- a/docs/iot-gateway/mqtt.md +++ b/docs/iot-gateway/mqtt.md @@ -10,7 +10,7 @@ description: MQTT protocol support for ThingsBoard IoT Gateway * TOC {:toc} -This guide will help you to get familiar with OPC-UA extension configuration for ThingsBoard IoT Gateway. +This guide will help you to get familiar with MQTT extension configuration for ThingsBoard IoT Gateway. Use [general configuration](/docs/iot-gateway/configuration/) to enable this extension. We will describe extension configuration file below. diff --git a/docs/user-guide/resources/web-socket.html b/docs/user-guide/resources/web-socket.html new file mode 100644 index 0000000000..e0567bdaf2 --- /dev/null +++ b/docs/user-guide/resources/web-socket.html @@ -0,0 +1,65 @@ + + + + + + + + + +
+ Run WebSocket +
+ + + \ No newline at end of file diff --git a/docs/user-guide/telemetry.md b/docs/user-guide/telemetry.md index cb040c99e4..a4613d0384 100644 --- a/docs/user-guide/telemetry.md +++ b/docs/user-guide/telemetry.md @@ -141,7 +141,25 @@ where - **startTs** - start time of fetch interval for historical data query, in milliseconds. - **endTs** - end time of fetch interval for historical data query, in milliseconds. -A complete example is coming soon! +##### Example + +Change values of the following variables : + + - **token** - to the JWT token which you can get using the [following link](https://thingsboard.io/docs/reference/rest-api/#rest-api-auth). + + - **entityId** - to your device id. + + In case of live-demo server : + + - replace **host:port** with **demo-thingsboard.io** and choose secure connection - **wss://** + + In case of local instalation : + + - replace **host:port** with **127.0.0.1:8080** and choose **ws://** + +{% capture tabspec %}web-socket +A,web-socket.html,html,resources/web-socket.html,/docs/user-guide/resources/web-socket.html{% endcapture %} +{% include tabs.html %} ## Data visualization From 13e9cf606de35f05d422475bb308303a12bdc2c8 Mon Sep 17 00:00:00 2001 From: Dima Landiak Date: Tue, 31 Oct 2017 13:03:19 +0200 Subject: [PATCH 2/2] minor fixes --- docs/user-guide/resources/web-socket.html | 85 +++++++++++------------ docs/user-guide/telemetry.md | 2 +- 2 files changed, 40 insertions(+), 47 deletions(-) diff --git a/docs/user-guide/resources/web-socket.html b/docs/user-guide/resources/web-socket.html index e0567bdaf2..6f89ee1bd1 100644 --- a/docs/user-guide/resources/web-socket.html +++ b/docs/user-guide/resources/web-socket.html @@ -3,54 +3,47 @@ @@ -58,7 +51,7 @@ diff --git a/docs/user-guide/telemetry.md b/docs/user-guide/telemetry.md index a4613d0384..2dedffc12e 100644 --- a/docs/user-guide/telemetry.md +++ b/docs/user-guide/telemetry.md @@ -153,7 +153,7 @@ Change values of the following variables : - replace **host:port** with **demo-thingsboard.io** and choose secure connection - **wss://** - In case of local instalation : + In case of local installation : - replace **host:port** with **127.0.0.1:8080** and choose **ws://**