Skip to content

Commit 57983e2

Browse files
committed
Merge branch 'staging/4.3' into release/4.3
2 parents f785b96 + 79ffd38 commit 57983e2

166 files changed

Lines changed: 714 additions & 1251 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_data/guides.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@ toc:
4040
section:
4141
- title: Add & remove devices from groups dynamically
4242
path: /docs/user-guide/rule-engine-2-0/tutorials/add-devices-to-group/
43-
- title: Live Demo Server
44-
path: /docs/user-guide/live-demo/
4543
- title: Local Demo Account
4644
path: /docs/samples/demo-account/

_data/host-constant.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
- tag: ce
2-
hostLabel: ThingsBoard Demo
3-
hostName: demo.thingsboard.io
4-
mqttHostName: demo.thingsboard.io
5-
coapHostName: demo.thingsboard.io
6-
httpsUrl: https://demo.thingsboard.io
7-
lwm2mHostName: demo.thingsboard.io
8-
apiHostName: demo.thingsboard.io
2+
hostLabel: localhost
3+
hostName: localhost
4+
mqttHostName: localhost
5+
coapHostName: localhost
6+
httpsUrl: https://localhost
7+
lwm2mHostName: localhost
8+
apiHostName: localhost
99
- tag: pe
1010
hostLabel: ThingsBoard Cloud
1111
hostName: thingsboard.cloud

_data/installation-options/installation-options-ce.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
liveDemo:
22
0:
3-
title: ThingsBoard
4-
description: Create your personal account on the live demo server. It is totally free!
5-
link: https://demo.thingsboard.io/signup
6-
icon: https://img.thingsboard.io/thingsboard_small_icon.svg
7-
alt: Thingsboard logo
8-
imageTitleAttribute: Try ThingsBoard live demo for free
9-
imageWidth: 72
3+
title: North America
4+
description: ThingsBoard Cloud is a fully managed, scalable and fault-tolerant platform for your IoT applications.
5+
link: https://thingsboard.cloud/signup
6+
icon: https://img.thingsboard.io/thingsboard_pe_small_icon.svg
7+
alt: Thingsboard PE logo
8+
imageTitleAttribute: ThingsBoard Professional Edition
9+
imageWidth: 39
10+
imageHeight: 36
11+
1:
12+
title: Europe
13+
description: ThingsBoard Cloud is a fully managed, scalable and fault-tolerant platform for your IoT applications.
14+
link: https://eu.thingsboard.cloud/signup
15+
icon: https://img.thingsboard.io/thingsboard_pe_small_icon.svg
16+
alt: Thingsboard PE logo
17+
imageTitleAttribute: ThingsBoard Professional Edition
18+
imageWidth: 39
1019
imageHeight: 36
1120
onPremise:
1221
0:

_data/paas-eu/guides.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@ toc:
4040
section:
4141
- title: Add & remove devices from groups dynamically
4242
path: /docs/user-guide/rule-engine-2-0/tutorials/add-devices-to-group/
43-
- title: Live Demo Server
44-
path: /docs/user-guide/live-demo/
4543
- title: Local Demo Account
4644
path: /docs/samples/demo-account/

_data/paas/guides.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@ toc:
4040
section:
4141
- title: Add & remove devices from groups dynamically
4242
path: /docs/user-guide/rule-engine-2-0/tutorials/add-devices-to-group/
43-
- title: Live Demo Server
44-
path: /docs/user-guide/live-demo/
4543
- title: Local Demo Account
4644
path: /docs/samples/demo-account/

_data/pages_info.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4814,9 +4814,6 @@
48144814
"/docs/samples/roltek/roltek/":
48154815
url: "/docs/samples/roltek/roltek/"
48164816
redirect_from: []
4817-
"/docs/samples/sample/sample/":
4818-
url: "/docs/samples/sample/sample/"
4819-
redirect_from: []
48204817
"/docs/samples/senquip/":
48214818
url: "/docs/samples/senquip/"
48224819
redirect_from: []

_data/pe/guides.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@ toc:
4040
section:
4141
- title: Add & remove devices from groups dynamically
4242
path: /docs/user-guide/rule-engine-2-0/tutorials/add-devices-to-group/
43-
- title: Live Demo Server
44-
path: /docs/user-guide/live-demo/
4543
- title: Local Demo Account
4644
path: /docs/samples/demo-account/

_includes/contact-us-modal.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ <h2>{{ modalDescription }}</h2>
8787
<input type="hidden" name="utm_term" id="utm_term">
8888
<input type="hidden" name="utm_content" id="utm_content">
8989
<input type="hidden" name="client_id" id="client_id">
90+
<input type="hidden" name="fpr" id="fpr">
9091
<input type="hidden" name="tags" id="tags" value="product">
9192
<input type="hidden" name="form_id" id="form_id" value="contact_us_modal">
9293
<input type="hidden" name="path" id="path" value="">
@@ -163,6 +164,14 @@ <h2>{{ modalDescription }}</h2>
163164
$form.find('input[name="client_id"]').val(clientId);
164165
}
165166
}
167+
168+
// get fpr from localStorage
169+
const fprValue = localStorage.getItem('fpr');
170+
if (fprValue) {
171+
utmData['fpr'] = fprValue;
172+
$form.find('input[name="fpr"]').val(fprValue);
173+
}
174+
166175
window.dataLayer = window.dataLayer || [];
167176
window.dataLayer.push({
168177
event: 'contact-us',

_includes/docs/device-library/blocks/basic/introduction-block.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Additionally, you’ll learn how to control the device using platform features s
1010

1111
Before proceeding, ensure you have the following requirements in place:
1212
{{ prerequisites }} {% if page.docsPrefix == "pe/edge/" %}
13-
- A ThingsBoard Cloud account ([Europe](https://eu.thingsboard.cloud/signup){: target="_blank"} or [America](https://thingsboard.cloud/signup){: target="_blank"}), or a [local server](/docs/user-guide/install/pe/installation-options/){: target="_blank"} installed on-premises
13+
- ThingsBoard Cloud account in ([Europe](https://eu.thingsboard.cloud/signup){: target="_blank"} or [North America](https://thingsboard.cloud/signup){: target="_blank"}), or a [local server](/docs/user-guide/install/pe/installation-options/){: target="_blank"} installed on-premises
1414
{% else %}
15-
- A [ThingsBoard account](https://demo.thingsboard.io/signup){: target="_blank"} or a [local server](/docs/user-guide/install/installation-options/){: target="_blank"} installed on-premises
15+
- [ThingsBoard Cloud](https://thingsboard.io/installations/){: target="_blank"} account or a [local server](/docs/user-guide/install/installation-options/){: target="_blank"} installed on-premises
1616
{% endif %}
1717

1818
{% else %}
@@ -30,7 +30,7 @@ To continue with this guide, we will need the following:
3030
{{ prerequisites }} {% if page.docsPrefix == "pe/" %}
3131
- [ThingsBoard Cloud (Europe)](https://eu.thingsboard.cloud/signup){: target="_blank"} or [ThingsBoard Cloud (America)](https://thingsboard.cloud/signup){: target="_blank"}
3232
{% else %}
33-
- [ThingsBoard account](https://demo.thingsboard.io/signup){: target="_blank"}
33+
- [ThingsBoard Cloud](https://thingsboard.io/installations/){: target="_blank"} account or a [local server](/docs/user-guide/install/installation-options/){: target="_blank"} installed on-premises
3434
{% endif %}
3535

3636
{% endif %}

_includes/docs/device-library/blocks/microcontrollers/camera-code-to-program-block.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11

22
Now it’s time to program the board to connect to ThingsBoard.
3-
To do this, you can use the code below. It contains all required functionality for this guide.
4-
5-
{% capture demoExample %}
6-
If you want to use [**demo.thingsboard.io**](https://demo.thingsboard.io), please notice that it has a size limit for the MQTT messages - **1024 bytes per message**.
7-
8-
In this case you can reduce the resolution, quality and cut the encoded photo.
9-
To do this you can change the value of variable **DEMO_MODE** to **1**:
10-
<code>
11-
#define DEMO_MODE 1
12-
</code>
13-
14-
{% endcapture %}
15-
16-
{% unless page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}
17-
{% include templates/warn-banner.md content=demoExample %}
18-
{% endunless %}
3+
To do this, you can use the code below. It contains all required functionality for this guide.
194

205
```cpp
216
#include <Arduino_MQTT_Client.h>
@@ -24,8 +9,6 @@ To do this you can change the value of variable **DEMO_MODE** to **1**:
249
#include "soc/soc.h"
2510
#include "soc/rtc_cntl_reg.h"
2611

27-
#define DEMO_MODE {% if page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}0{% else %}1{% endif %}
28-
2912
#include <Server_Side_RPC.h>
3013
#include <Attribute_Request.h>
3114
#include <Shared_Attribute_Update.h>
@@ -194,14 +177,9 @@ bool initCamera() {
194177
config.pin_reset = RESET_GPIO_NUM;
195178
config.xclk_freq_hz = 20000000;
196179
config.pixel_format = PIXFORMAT_JPEG;
197-
config.fb_count = 1;{% unless page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}
198-
if (DEMO_MODE == 1) {
199-
config.frame_size = FRAMESIZE_96X96;
200-
config.jpeg_quality = 63;
201-
} else { {% endunless %}
180+
config.fb_count = 1;
202181
config.frame_size = FRAMESIZE_240X240;
203-
config.jpeg_quality = 10;{% unless page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}
204-
}{% endunless %}
182+
config.jpeg_quality = 10;
205183

206184
esp_err_t err = esp_camera_init(&config);
207185
if (err != ESP_OK) {
@@ -229,10 +207,7 @@ bool captureImage() {
229207
return true;
230208
}
231209

232-
void encode(const uint8_t *data, size_t length) { {% unless page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}
233-
if (DEMO_MODE == 1) {
234-
length = 756;
235-
}{% endunless %}
210+
void encode(const uint8_t *data, size_t length) {
236211
size_t size = base64_encode_expected_len(length) + 1;
237212
base64_encodestate _state;
238213
base64_init_encodestate(&_state);
@@ -519,7 +494,6 @@ Necessary variables for connection:
519494
| THINGSBOARD_PORT | **1883U** | ThingsBoard server MQTT port. Can be default for this guide. |
520495
| MAX_MESSAGE_SIZE | **100U*1024** | Maximal size of MQTT messages. Should be more than picture size + ~1024 or more. |
521496
| SERIAL_DEBUG_BAUD | **1883U** | Baud rate for serial port. Can be default for this guide. |
522-
| DEMO_MODE | **1** | If you want to use **demo.thingsboard.io** set this value to **1**. This reduces the resolution, quality and cut the encoded photo to avoid size limit. |
523497
524498
```cpp
525499
...

0 commit comments

Comments
 (0)