Skip to content

Commit c992d3c

Browse files
samson0vashvayka
authored andcommitted
Socket connector minor update
1 parent 1d2fd47 commit c992d3c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

_includes/templates/iot-gateway/socket-connector/device-time-series-and-attributes-basic-section.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data is sent to the ThingsBoard server. The following strategies are available:
3232

3333
- **On report period** - sends data to ThingsBoard after the report period;
3434
- **On value change** - sends data to ThingsBoard when the value changes;
35-
- **On value change and report period** - sends data to ThingsBoard when the value changes or report period;
35+
- **On value change or report period** - sends data to ThingsBoard when the value changes or report period;
3636
- **On received** - sends data to ThingsBoard after receiving data from the device (default strategy).
3737

3838
![image](/images/gateway/socket-connector/socket-adding-device-9-ce.png)

docs/iot-gateway/config/socket.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ description: Socket API support for ThingsBoard IoT Gateway
99
{:toc}
1010

1111
This guide will help you get familiar with Socket Connector configuration for ThingsBoard IoT Gateway.
12-
Use the [general configuration guide](/docs/iot-gateway/configuration/) to enable this Connector. It's purpose
13-
is to connect to your server using TCP or UDP connection type.
14-
15-
This Connector is useful when you have a local server in your facility or corporate network and want to push
16-
data from the server to ThingsBoard.
12+
Use the [general configuration guide](/docs/iot-gateway/configuration/) to enable this connector.
13+
A Socket connector runs a server on the local machine to which other devices can connect. This connector is useful
14+
when you have devices that can send data over TCP or UDP protocols.
1715

1816
We will describe the connector configuration file below.
1917

@@ -45,7 +43,7 @@ This configuration section contains general connector settings, such as:
4543
- **Type** - type of the report strategy:
4644
- **On report period** - sends data to ThingsBoard after the report period;
4745
- **On value change** - sends data to ThingsBoard when the value changes;
48-
- **On value change and report period** - sends data to ThingsBoard when the value changes or report period;
46+
- **On value change or report period** - sends data to ThingsBoard when the value changes or report period;
4947
- **On received** - sends data to ThingsBoard after receiving data from the device (default strategy).
5048

5149
{% capture difference %}
@@ -62,7 +60,7 @@ The settings are the same for both the basic and advanced configurations.
6260

6361
## Section "Socket"
6462

65-
The “Socket” section is used for configuring socket connection settings.
63+
The “Socket” section is used for configuring local socket settings.
6664

6765
{% capture socketsection %}
6866
Basic<small></small>%,%basic%,%templates/iot-gateway/socket-connector/socket-basic-section.md%br%
@@ -72,8 +70,8 @@ Advanced<small></small>%,%advanced%,%templates/iot-gateway/socket-connector/sock
7270

7371
## Section "Devices"
7472

75-
This configuration section contains an array of objects that contains clients that can be connected to the connector and
76-
send the data. Any connection not included in this array will be rejected by the connector.
73+
This configuration section contains an array of objects that contains clients that can be connected to the connector\'s
74+
socket and send the data to it. Any connection not included in this array will be rejected by the connector.
7775

7876
### Subsection "Device"
7977

0 commit comments

Comments
 (0)