# Encoding

In order to compress data as efficiently as possible, we encode it in various ways. On this page, you will find detailed information about data encoding in the API 6 ranging from binary flags to accelerometer data.&#x20;

Examples are included with every encoding.

{% content-ref url="/pages/XukvQI72OlRXwIXZxjhF" %}
[8 binary flags (byte bits)](/kb/simple-api-6-generation/api-6-encoding_23396515/8-binary-flags-byte-bits.md)
{% endcontent-ref %}

{% content-ref url="/pages/CP9skX4kBIy1KoOGdDT8" %}
[SimpleTime](/kb/simple-api-6-generation/api-6-encoding_23396515/simpletime.md)
{% endcontent-ref %}

{% content-ref url="/pages/H7wZCf5DCskzr79427bL" %}
[SimpleTemp](/kb/simple-api-6-generation/api-6-encoding_23396515/simpletemp.md)
{% endcontent-ref %}

{% content-ref url="/pages/55FqOvunpF4Th1Rxa3qy" %}
[Accelerometer Data](/kb/simple-api-6-generation/api-6-encoding_23396515/page-6.md)
{% endcontent-ref %}

{% content-ref url="/pages/3ky8dVVvKMzqWMnGaHCy" %}
[Magnetometer data](/kb/simple-api-6-generation/api-6-encoding_23396515/magnetometer-data.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ask.simplehw.eu/kb/simple-api-6-generation/api-6-encoding_23396515.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
