AOSv2 Get Node-info Data
This guide provides information about how to get data about Node your device is part of.
Please use AOS v2. AOS is outdated version.
Configuration
To connect AOS with twinzo digital twin, visit the course page and find out, how to set up an AOS:
The main information about how to use twinzo´s REST API and how to authorize your access:
Swagger AOSv2 Section
The Swagger AOSv2 section provides a detailed description of the API for the AOSv2. For getting data about node your device is part of we can use node-info.
Example
There is an example for /node-info calls below. The whole request URL: https://api.twinzo.eu/v3.0/aos/v2/node-info
{
"Guid": "946602e0-d4ff-4592-9a42-4f617966a7b4",
"Title": "API Test",
"WorkRole": "APIWorkRole",
"WorkRoleId": 115,
"Packages": [
{
"Id": 40,
"Title": "APIPackage",
"Create": true,
"SendTo": true,
"Deliver": true,
"Accept": true,
"Abort": true,
"Complete": true,
"Discard": true,
"Items": [
{
"Id": 97,
"Title": "Wheel",
"Count": 0
}
],
"Index": 0
}
],
"AutoOrderSending": false,
"AutoItemSelection": true
}
Token - token of your sensor/device/user who send order. More info about token: Authorization
Data Properties
The request answer you get is JSON with the information about node accordingly the sensor/device/user is part of. Every object contains these parameters.
Guid | A string that represents uniq node´s id. |
Title | A string that represents the name of the node. |
WorkRole | A string that represents the name of the work role. |
WorkRoleId | An integer that represents work role id. |
Packages | A field of the objects with the info about packages. |
Packages - Id | An integer that represents package´s id. |
Packages - Title | A string that represents the name of the package. |
Packages - Created | A boolean value that represent if the node can crate order. |
Packages - SendTo | A boolean value that represent if the node can send order to another node. |
Packages - Deliver | A boolean value that represent if the node can deliver order. |
Packages - Accept | A boolean value that represent if the node can accept order. |
Packages - Abort | A boolean value that represent if the node can abort order. |
Packages - Complete | A boolean value that represent if the node can complete order. |
Packages - Discard | A boolean value that represent if the node can discard order. |
Packages - Items | A field of the objects with the info about items (components) used in the node. |
Packages - Items - Id | An integer that represents item´s id. |
Packages - Items - Title | A string that represents the name of the item. |
Packages - Items - Count | An integer that represent count of the items you can ordered in one request. |
Packages - Index | An integer that represent sort index. |
AutoOrderSending | A boolean value that represent if the node send order automatically. |
AutoItemSelection | A boolean value that represent if the node select item automatically. |
Detailed info about action: AOS Package permissions explained.
If you encounter any issues or need assistance with using this product, please do not hesitate to reach out for support. Our team is here to help you resolve any problems and answer any questions you may have.
To create a support ticket, visit our support portal at https://partner.twinzo.eu/helpdesk/customer-care-1