To create a new integration you must go to the Network management page and press the following buttonon the right side of the page. You only need to specify the network's name.
You can turn the serial number to required or not. If not required, the user will not be requested to enter a serial number. Usually you will want this to be on.
The serial number allows you to get the device using your network token. Then you can insert data to the device.
Device parameters are useful ways to set some parameters to connectors created using your Network.
You can set it as a Number, Text, Dropdown or Switch, which you can access later in the payload parser.
Here is an example with dropdown on how it looks in the user view:
Check the Payload parser context overview to see how to get this information on the payload parser.
Here you can generate tokens for your network. You will need the token to get access to devices created in your network. The token will have no use if you're not using Serial Number, as the serial number is required to use this functionality.
HTTPs GET: https://api.tago.io/integration/network/resolve/{serial_number}/{authorization} Headers: - Authorization: Network-token
Response HTTPs Header 200:
{
"status": true,
"result": "01369696-xxxx-xxxx-xxxx-feb5ddca1751"
}
The result of the request is the device token, which you can use to send the data with the HTTP's data post.
If you will be sending raw payload data, please follow the instructions bellow in order to keep it compatible with all TagoIO connectors.
- Send the variable as payload.
- Always send the value as hexadecimal.
Example:
{ "variable": "payload", "value": "01000A0" }
The payload parser for the Network doesn't work any differently from the payload parser for devices. All of the same rules are applied here.
If you're sending data to TagoIO in the correct format, there is not much to do here. But if you're sending a text file, or an unsupported JSON format, it is best to handle this here before going to the device connector.
Some integrations do not send the payload in hexadecimal, and in the payload parser you can easily change it to hex in order to keep the compatibility with all other connectors.
Now all you need to do to start using your network is to create a connector.
The network is the way the device will be connecting to TagoIO, the connector is what the device is.
After creating your connector, you will be able to start creating devices with the connector and network you've made.