GET /protocols/m-bus/devices
FROM API REVISION 6.0
This will list all the discovered devices.
Once a device is discovered, it is saved into a "Cache".
This cache will contain only the discovered devices.
Used when you are operating a browser without access to the header parameter. This allows you to choose which encoding you want to use for the response:
All these resources can be used according what the resource allows.
The $expand system query option specifies the related resources to be included in line with retrieved resources.
The value passed in the parameter can be:
The $expand system query option can be used with the $levels query option, to expand recursively.
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
Cyclic navigation properties can be recursively expanded using the special $levels option. This query option is used in addition to the $expand query options.
The value of the $levels option is a positive integer to specify the number of levels to expand.
Object Name: Devices
Property Name | Type | Description | Method |
---|---|---|---|
Devices | Array<Device> | This is the list of M-Bus devices discovered. | GET |
URL Example: https://0.0.0.0/api/rest/v1/protocols/m-bus/devices
[
{
"href": "/api/rest/v1/protocols/m-bus/devices/116878982826457",
"name": "116878982826457"
},
{
"href": "/api/rest/v1/protocols/m-bus/devices/116878982826515",
"name": "116878982826515"
},
{
"href": "/api/rest/v1/protocols/m-bus/devices/116878982826772",
"name": "116878982826772"
}
]
URL Example: https://0.0.0.0/api/rest/v1/protocols/m-bus/devices
<?xml version="1.0" encoding="utf-8"?>
<Devices>
<Device>
<Href>/api/rest/v1/protocols/m-bus/devices/116878982826457</Href>
<Name>116878982826457</Name>
</Device>
<Device>
<Href>/api/rest/v1/protocols/m-bus/devices/116878982826515</Href>
<Name>116878982826515</Name>
</Device>
<Device>
<Href>/api/rest/v1/protocols/m-bus/devices/116878982826772</Href>
<Name>116878982826772</Name>
</Device>
</Devices>