-
Based on experience from [tiktoken](https://github.com/openai/tiktoken/tree/main) data science Open Source repository and benchmarks for IoText encoder/decoder (compare to JSON), it will be good to ha…
-
[RLE](https://en.wikipedia.org/wiki/Run-length_encoding) is a common algo. and probably nothing special, but in case of data streams with TEXT-type data, we can use RLE to optimize bytes used to trans…
bieli updated
7 months ago
-
It will be good if we can send measurements by `IoText data protocol` fast changed values e.g. 10 milliseconds or 100 ms.
For example, from an earthquake device, it's not optimal to send multiple …
bieli updated
7 months ago
-
Example of generic `IoText data protocol` row:
```bash
t|3900267526042,d|meter_01,m|distance_mm=i:12345
```
after DEC to HEX conversion, we have -1 byte per one record (data field) in this exa…
bieli updated
7 months ago
-
Result after running decode example on device (ESP32):
```bash
Encoded payload:
t|2900267526042,d|devie_id_x3,m|val=t:txt,m|metric_boolean1=b:1,m|metric_integer9=i:3333
---------
Decoded items…
bieli updated
9 months ago
-
### Description
We can use CRC16 from typical MODBUS implementation, next combine below fields with values:
- time
- device_id
- all metrics
and add `optional` field with calculated: `c|`.
E…
bieli updated
7 months ago
-
### General idea overview
For example, you want to send/encode array of integers like this with IoTextdata protocol:
```bash
[-611,611,-583,592,-587,-605,-590,-649,620]
```
You can optimize arr…
bieli updated
7 months ago
-
Matt's proposal for future implementations of methods:
- `from_json`
- `to_json`
For compatibility and integrations with other layers/systems/3rd part solutions.
bieli updated
6 months ago
-
-
Unit test skipped - to fixing - is [here](https://github.com/bieli/IoText-data-protocol/blob/ab037f3e16da3373a5320af2cfc1d8b3bb684945/tests/codecs/test_iot_ext_codec.py#L17)