Skip to content
Snippets Groups Projects

Update README.md, sensors_api.md files

Merged Šimon Koleják requested to merge simon.kolejak-master-patch-39563 into master
+ 42
19
`Sensor Data
# Sensor Data API
## Introduction
Variables are defined as **${variable_name}**
Set HTTP Header
Client: {your-client-guid}
Token: {your-token}
## Set HTTP Header
<pre><code>
Client: <b>${your-client-guid} </b>
Token: <b>${your-token} </b>
</code></pre>
POST: https://twin.rtls.solutions/api/sensors?api-version=2.0
## Method and URL
<pre><code>
POST: [https://twin.rtls.solutions/api/sensors?api-version=2.0]
</code></pre>
## Request body
<pre><code>[
{
"l": <b>${sensor-login} </b>, // login
"data":[
{
"n": "Temperature", // name of the quantity
"v": "10", // value
"u": "°C" // unit
"d": "Int32" // data type
},
]
},
]
</code></pre>
### Available data types :
- Boolean
- Byte
- SByte
- Char
- Decimal
- Double
- Single
- Int32
- UInt32
- Int64
- UInt64
- Int16
- UInt16
Body:
[
{
"l": "sensor-login", // login
"data": [
{
"n": "Temperature", // name of the quantity
"v": "10", // value
"u": "°C" // unit
"d": "Int32" // datatype (Boolean, Byte, SByte, Char, Decimal, Double, Single, Int32, UInt32, Int64, UInt64, Int16, UInt16)
},
]
}
]`
Loading