> For the complete documentation index, see [llms.txt](https://docs.mclimate.eu/mclimate-lorawan-devices/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-co2-sensor-and-notifier-lorawan/co2-sensor-lorawan-device-communication-protocol/read-device-hardware-and-software-version-command-explanation..md).

# Read device hardware and software version command explanation.

The server sends the command code to the device (Table 7) and with the next received message the response is received. The device response is described in Table 8.

| **Byte index** | **Bit index** | **Hex value – Meaning**                 |
| -------------- | ------------- | --------------------------------------- |
| 0              | -             | 04 – Read software and hardware version |

*Table 7*

**Example command**: 0x04

| **Byte index** | **Bit index** | **Hex value - Meaning**                                                                   |
| -------------- | ------------- | ----------------------------------------------------------------------------------------- |
| 0              | -             | 04 – The command byte shows that is packet with the device hardware and software version. |
| 1              | 7:4           | X – Device primary hardware version.                                                      |
| 1              | 3:0           | X – Device secondary hardware version.                                                    |
| 2              | 7:4           | X – Device primary software version.                                                      |
| 2              | 3:0           | X – Device secondary software version.                                                    |

*Table 8*

**Example response, \[Hex]**: 041211 (Here the received keep-alive command data is omitted for clarity).

**Decoding**:&#x20;

* 0x04 – Read software and hardware version response
* 0x12 - Device hardware version – version 1.2
* 0x11 – Device software version – version 1.1


---

# 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 dynamically by asking a question.

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

```
GET https://docs.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-co2-sensor-and-notifier-lorawan/co2-sensor-lorawan-device-communication-protocol/read-device-hardware-and-software-version-command-explanation..md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
