AOSv2 Get Node-info Data
This guide provides information about how to get data about the Node your device is part of.
Please use AOS v2. AOS is an 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 the 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
}
Data Properties
The request answer you get is JSON with the information about the node accordingly the sensor/device/user is part of. Every object contains these parameters.
Guid | A string that represents a unique 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 the package's id. |
Packages - Title | A string that represents the name of the package. |
Packages - Created | A boolean value that represents if the node can crate order. |
Packages - SendTo | A boolean value that represents if the node can send the order to another node. |
Packages - Deliver | A boolean value that represents if the node can deliver the order. |
Packages - Accept | A boolean value that represents if the node can accept order. |
Packages - Abort | A boolean value that represents if the node can abort order. |
Packages - Complete | A boolean value that represents if the node can complete the order. |
Packages - Discard | A boolean value that represents 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 the item's id. |
Packages - Items - Title | A string that represents the name of the item. |
Packages - Items - Count | An integer that represents the count of the items you can order in one request. |
Packages - Index | An integer that represents a sort index. |
AutoOrderSending | A boolean value that represents if the node sends an order automatically. |
AutoItemSelection | A boolean value that represents if the node selects an 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