-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c21033
commit e7eee74
Showing
13 changed files
with
215 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
title: "UDP API" | ||
toc_label: "UDP" | ||
--- | ||
|
||
For the device gateway only. Refer to [the UDP Master API]({{'/api/udpMaster/' | relative_url}}) for the master gateway. | ||
{: .notice--info} | ||
|
||
## Overview | ||
|
||
The UDP API is for communicating with devices via UDP. | ||
|
||
## IP | ||
|
||
You can get/set IP configuration of a device within a subnet using [GetIPConfig](#getipconfig)/[SetIPConfig](#setipconfig). | ||
|
||
### GetIPConfig | ||
|
||
Get the IP configuration of a device. | ||
|
||
```protobuf | ||
message DeviceInfo { | ||
uint32 deviceID; | ||
string IPAddr; | ||
} | ||
``` | ||
{: #DeviceInfo } | ||
|
||
| Request | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| deviceInfo | [DeviceInfo](#DeviceInfo) | The information of the device in the subnet | | ||
|
||
| Response | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| config | [IPConfig]({{'/api/network/' | relative_url}}#IPConfig) | The IP configuration read from the device | | ||
|
||
### SetIPConfig | ||
|
||
Set the IP configuration of a device. | ||
|
||
| Request | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| deviceInfo | [DeviceInfo](#DeviceInfo) | The information of the device in the subnet | | ||
| config | [IPConfig]({{'/api/network/' | relative_url}}#IPConfig) | The IP configuration to be written to the device | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: "UDP Master API" | ||
toc_label: "UDP Master" | ||
--- | ||
|
||
For the master gateway only. Refer to [the UDP API]({{'/api/udp/' | relative_url}}) for the device gateway. | ||
{: .notice--info} | ||
|
||
## Overview | ||
|
||
A master gateway manages devices through one or more device gateways. So, you have to specify a gateway ID when calling some of the APIs. Apart from this difference, the UDP Master API shares most of the data structures with [the UDP API]({{'/api/udp/' | relative_url}}). | ||
|
||
## IP | ||
|
||
You can get/set IP configuration of a device within a subnet using [GetIPConfig](#getipconfig)/[SetIPConfig](#setipconfig). | ||
|
||
### GetIPConfig | ||
|
||
Get the IP configuration of a device. | ||
|
||
| Request | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| gatewayID | string | The ID of the gateway | | ||
| deviceInfo | [DeviceInfo]({{'/api/udp/' | relative_url}}#DeviceInfo) | The information of the device in the subnet | | ||
|
||
| Response | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| config | [IPConfig]({{'/api/network/' | relative_url}}#IPConfig) | The IP configuration read from the device | | ||
|
||
### SetIPConfig | ||
|
||
Set the IP configuration of a device. | ||
|
||
| Request | | ||
|
||
| Parameter | Type | Description | | ||
| --------- | ---- | ----------- | | ||
| gatewayID | string | The ID of the gateway | | ||
| deviceInfo | [DeviceInfo]({{'/api/udp/' | relative_url}}#DeviceInfo) | The information of the device in the subnet | | ||
| config | [IPConfig]({{'/api/network/' | relative_url}}#IPConfig) | The IP configuration to be written to the device | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters