Thanks @Colin
I check my DB after each inject, since the time of each record gets updated I suppose that data is overwritten.
Here's my flow:
[
{
"id": "d6917e29a170d08e",
"type": "inject",
"z": "20c088228d07a2a4",
"name": "",
"props": [],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"x": 170,
"y": 120,
"wires": [
[
"457bbc90b7b71e12"
]
]
},
{
"id": "457bbc90b7b71e12",
"type": "function",
"z": "20c088228d07a2a4",
"name": "function 2",
"func": "msg.payload = [{\n \"spec\": 10,\n \"right\": 9,\n \"left\": 11\n}]\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 360,
"y": 120,
"wires": [
[
"49e76f17d94beaeb",
"f173287b4bbdda06"
]
]
},
{
"id": "49e76f17d94beaeb",
"type": "influxdb out",
"z": "20c088228d07a2a4",
"influxdb": "781331b7e1a6b50a",
"name": "",
"measurement": "cutterc",
"precision": "",
"retentionPolicy": "",
"database": "database",
"precisionV18FluxV20": "ms",
"retentionPolicyV18Flux": "",
"org": "smart-systems",
"bucket": "beta-95",
"x": 680,
"y": 120,
"wires": []
},
{
"id": "f173287b4bbdda06",
"type": "debug",
"z": "20c088228d07a2a4",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 540,
"y": 40,
"wires": []
},
{
"id": "781331b7e1a6b50a",
"type": "influxdb",
"hostname": "127.0.0.1",
"port": "8086",
"protocol": "http",
"database": "database",
"name": "",
"usetls": false,
"tls": "",
"influxdbVersion": "2.0",
"url": "http://localhost:8086",
"timeout": "10",
"rejectUnauthorized": true
}
]