Navigating Data
Before you can access your data, you first have to know what data you are interested in. In the BACE system your data is structured in such a way that it offers maximum flexibility without loosing access simplicity. There are three main components to this structure:
Groups
Physical Devices
Data Sessions Data sessions are only applicable for users of BACE Go and are explained in a separate section. Not sure what device you have? Take a look here!
Navigating Groups
Every BACE Connectivity Module is linked to a group. Groups are data containers; when the BACE Connectivity Module receives data, it is relayed and stored in the respective group. Groups therefore provide access to the data of your Connectivity Module and any device that is connected to it.
Groups can be identified by their unique id_group. A list of groups that you have access to can be retrieved using the group
endpoint:
Index groups
GET
https://dashboard.bace-iot.com/api/v2/group/index
Respond will consist of a list of your data groups
In this example the user has access to one group. The API response already provides hints on how to retrieve data from the device(s) in this group. This is explained further in the next section.
Navigating Physical Devices
Physical devices are any devices in your IoT project. This includes your BACE Connectivity Module, sensors, devices, and other assets that are connected to BACE products.
All physical devices are identified by the unique id_physical_device
parameter. Like the group
endpoint, a list of accessible physical devices can be retrieved.
Let's evaluate how the response looks like for this command. Please note that for ease of reading some filters are applied and the response is truncated so it will look different than what you get.
GET
https://dashboard.bace-iot.com/api/v2/physical-device?fields=id_physical_device,label,last_data_at
The response above lists three Connectivity Modules assigned to your account and displays unique physical device ID, label and last time Module sent data to Cloud information. In practice it is important to keep a list of all physical device ids in your own database so that you know which device you are working on when you read/write attributes.
Both endpoints in this section can also be used with Advanced Features. In the example below we use expand on group to get an overview of all groups that each physical device is linked to:
Access physical device data
GET
https://dashboard.bace-iot.com/api/v2/physical-device?expand=group
Response will be a paginated list of datapoints that are available in the group.
Query Parameters
expand
group
The API example responses already provide hints on how to retrieve data from these devices or groups. This is explained in more detail in the next section.
Last updated