Skip to content
Snippets Groups Projects
Commit c60e60e3 authored by Šimon Koleják's avatar Šimon Koleják
Browse files

v1

parent 00aabc7a
No related branches found
No related tags found
1 merge request!1Update README.md, sensors_api.md files
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
<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>
## 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)
},
]
}
]
</code>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment