# 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, \[Hex]**: 04

| **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]**: 041210 (Here the received keep-alive command data is omitted for clarity).

**Decoding, \[Hex]**:&#x20;

* 04 – Read software and hardware version response
* 12 - Device hardware version – version 1.2
* 10 – Device software version – version 1.0


---

# 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.mclimate.eu/mclimate-lorawan-devices/devices/mclimate-multipurpose-button-lorawan/mclimate-button-lorawan-device-communication-protocol/read-device-hardware-and-software-version-command-explanation.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.
