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
+ 36
20
<code>Sensor Data&nbsp;
Set HTTP Header&nbsp;
Client: {your-client-guid}
Token: {your-token}
# Sensor Data API
## Introduction
Variables are defined as **${variable_name}**
POST: https://twin.rtls.solutions/api/sensors?api-version=2.0
## Set HTTP Header
<pre><code> Client: <b>${your-client-guid} </b>
Token: <b>${your-token} </b></code></pre>
Body:
## Method and URL
<pre><code>POST: [https://twin.rtls.solutions/api/sensors?api-version=2.0]</code></pre>
[
{
"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)
},
]
}
]
</code>
## 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
Loading