Hi all,
I have a device that sends a heterogeneous byte stream over TCP.
The goal is to write these data in the right format into influxDB.
The data I receive is in the following format:
Byte | length | Type |
---|---|---|
0 | 1 | UINT8 |
1 | 1 | char |
2 | 1 | char |
3 | 1 | char |
4 | 1 | char |
5 | 1 | char |
6 | 1 | char |
7 | 1 | char |
8 | 1 | char |
9 | 1 | char |
10 | 1 | char |
11 | 1 | char |
12 | 1 | char |
13 | 1 | char |
14 | 1 | char |
15 | 1 | char |
16 | 1 | UINT8 |
17 | 2 | INT16 |
19 | 2 | INT16 |
21 | 2 | UINT16(16 boolean values) |
23 | 1 | char |
24 | 1 | char |
25 | 1 | char |
26 | 1 | UINT8(8 boolean values) |
27 | 1 | UINT8(8 boolean values) |
28 | 4 | UINT32 |
32 | 4 | UINT32 |
36 | 4 | UINT32 |
I’m trying to use the plugin socket_listener but I can’t figure out which format is suitable for my case
Is it possible to read these different data directly with telegraf? or is it better to create an interface software?
I ask so as to be directed in the right way.