# Packet format

This is the sample packet format that is sent from the device, its a JSON array, there will be multiple fields depending on the updates, you can disable or enable what you want in the code.

{% code overflow="wrap" %}

```
{"resource":[{"devid":"861657072373444","time":"2024-07-20 11:49:03","etype":"REBOOT","lat":"16.5","lon":"28.0","vbat":"12.389","speed":"0.000000"}]}
```

{% endcode %}

\
\
The array can single object as above or have multiple objects like below

{% code overflow="wrap" %}

```
{"resource":[{"devid":"861657072373444","time":"2024-07-20 11:49:03","etype":"REBOOT","lat":"16.5","lon":"28.0","vbat":"12.389","speed":"0.000000"}, 
{"devid":"861657072373444","time":"2024-07-20 11:50:03","etype":"REBOOT","lat":"16.5","lon":"28.0","vbat":"12.389","speed":"0.000000"}, 
{"devid":"861657072373444","time":"2024-07-20 11:51:03","etype":"REBOOT","lat":"16.5","lon":"28.0","vbat":"12.389","speed":"0.000000"}]}
```

{% endcode %}

\
**Acknowledgment :** \
The device firmware expects an acknowledgement string **"logid"** by default, because thats what we use in our server. You can change it to whatever value you like. Its in XHTTP\_Request function.\
For google scripts it expects response value as **"Moved"** . \
\ <mark style="color:red;">If it doesn't receive the acknowledgement text, it will keep repeating the packets.</mark>&#x20;


---

# 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://docs.valetron.com/wiki/products/valtrack-v4-mfw-esp32-c3/packet-format.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.
