You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/docs/device-library/blocks/basic/introduction-block.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ Additionally, you’ll learn how to control the device using platform features s
10
10
11
11
Before proceeding, ensure you have the following requirements in place:
12
12
{{ 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
14
14
{% 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
16
16
{% endif %}
17
17
18
18
{% else %}
@@ -30,7 +30,7 @@ To continue with this guide, we will need the following:
30
30
{{ prerequisites }} {% if page.docsPrefix == "pe/" %}
31
31
-[ThingsBoard Cloud (Europe)](https://eu.thingsboard.cloud/signup){: target="_blank"} or [ThingsBoard Cloud (America)](https://thingsboard.cloud/signup){: target="_blank"}
Copy file name to clipboardExpand all lines: _includes/docs/device-library/blocks/microcontrollers/camera-code-to-program-block.md
+4-30Lines changed: 4 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,6 @@
1
1
2
2
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.
19
4
20
5
```cpp
21
6
#include<Arduino_MQTT_Client.h>
@@ -24,8 +9,6 @@ To do this you can change the value of variable **DEMO_MODE** to **1**:
24
9
#include"soc/soc.h"
25
10
#include"soc/rtc_cntl_reg.h"
26
11
27
-
#defineDEMO_MODE {% if page.docsPrefix == "pe/" or page.docsPrefix contains "paas/" %}0{% else %}1{% endif %}
@@ -519,7 +494,6 @@ Necessary variables for connection:
519
494
| THINGSBOARD_PORT | **1883U** | ThingsBoard server MQTT port. Can be default for this guide. |
520
495
| MAX_MESSAGE_SIZE | **100U*1024** | Maximal size of MQTT messages. Should be more than picture size + ~1024 or more. |
521
496
| 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. |
0 commit comments