IoTool v1 Sensor List
Introduction
The /android/iotool_v1_sensorlist
flow is designed to demonstrate
simple SQL commands for getting and displaying sensor data. Flow
receives POST request and uses username to display all sensors used by
specific user.
Flow Overview
This documentation outlines the key components and functionalities within the IoTool v1 Sensor List, focusing on:
-
Receiving POST request containing data.
-
Setting dynamic queries in function node for database operations.
Purpose
Initiates the flow by receiving data through a POST request to a specified address. This example shows you how to specify endpoint where data is going to be sent and example configuration/structure of data.
Configuration
Following json file only represents example structure of POST request. Json file contains fields for PostgreSQL username and password. Username and password in example are random and you should select them based on your roles name. Username will be used in dynamic table name generation.
You should also modify url and host and set them to your device.
Example of Post request to send:
{
"info": {
"_postman_id": "56ff6dea-0cd1-40b3-80ef-8a7426935ede",
"name": "IoTool",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "4611963"
},
"item": [
{
"name": "/android/iotool_v1_sensorlist",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "un",
"value": "username",
"type": "text"
},
{
"key": "up",
"value": "password",
"type": "text"
}
]
},
"url": {
"raw": "http://dev.sandbox.engineering:1880/android/iotool_v1_sensorlist",
"protocol": "http",
"host": [
"test.sandbox.engineering"
],
"port": "1880",
"path": [
"android",
"/android/iotool_v1_sensorlist"
]
}
},
"response": []
}
]
}