> For the complete documentation index, see [llms.txt](https://help.boomerang3.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.boomerang3.com/s2gw-installation-manual/s2gw-operation/readings-handling.md).

# Readings handling

The S2GW asks the radio nodes for readings according to their log periods. It does it for all the sensors which were successfully initialised. It does not poll the nodes which failed the initialisation.

S2GW stores the readings obtained from the nodes into the S2Gateway\_readings.xml file located in /home/pi/S2Gateway/S2Gateway directory on the SD card.

<figure><img src="https://623241058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3O2JmRv8Cq2LTrIfpgxe%2Fuploads%2Fpa5IJADuDbKmgNXAxiyR%2Fimage.png?alt=media&amp;token=e3410e0d-a3e8-4af7-a333-7f0e012509d8" alt=""><figcaption></figcaption></figure>

Once it is time to send the data to B3, the records are read from the file, transmitted to B3 and then deleted from the file if their reception is confirmed by B3. Every reading has a counter numer to prevent deletion of the data which were not sent to B3.

If S2GW has connection to B3, the size of the file is 1 to 2KB as its records are constantly transmitted to B3.

If there is no contact with B3, S2GW stores up to 2000 readings in a single file and once this limit is reached, a new file is created named S2Gateway\_readings\_nnnn.xml where nnnn = 0001, 0002 etc.

<figure><img src="https://623241058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3O2JmRv8Cq2LTrIfpgxe%2Fuploads%2FE411wyiVOifksicWGlJY%2Fimage.png?alt=media&amp;token=4d4440bd-0d90-4eec-89da-6b152aee7d2e" alt=""><figcaption></figcaption></figure>

After the contact with B3 is restored, S2GW sends all the stored readings to B3. The latest readings are sent first.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.boomerang3.com/s2gw-installation-manual/s2gw-operation/readings-handling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
