> 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-multipurpose-button-lorawan/mclimate-button-lorawan-device-communication-protocol/commands-cheat-sheet.md).

# Commands cheat sheet

<table data-header-hidden><thead><tr><th width="129"></th><th width="106"></th><th width="391"></th><th></th></tr></thead><tbody><tr><td><strong>Command code, [hex]</strong></td><td><strong>Firmware version</strong></td><td><strong>Command name</strong></td><td><strong>Sent from</strong></td></tr><tr><td>01</td><td>All</td><td><a href="/pages/0bdcXjS2ZIn95ZyqIFVf">Keep-alive</a></td><td>End device</td></tr><tr><td>02</td><td>All</td><td><a href="/pages/0bdcXjS2ZIn95ZyqIFVf#set-keep-alive-period-command-explanation">Set keep-alive period</a></td><td>Server</td></tr><tr><td>04</td><td>All</td><td><a href="/pages/zUPd1kOdLSxlwQD1fbLy">Read device hardware and software version</a></td><td>Server/ End device</td></tr><tr><td>05</td><td>All</td><td><a href="/pages/q6Jpn0eSnAf0tz6qio0M">LED control</a></td><td>Server</td></tr><tr><td>10</td><td>All</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#set-network-join-retry-period-command-explanation">Set network join-retry period</a></td><td>Server</td></tr><tr><td>11</td><td>≥1.3</td><td><a href="/pages/1PERMskcIgROVuYwrsrm#set-uplink-messages-type-command-explanation">Set uplink messages type</a></td><td>Server</td></tr><tr><td>12</td><td>All</td><td><a href="/pages/0bdcXjS2ZIn95ZyqIFVf#get-keep-alive-period-command-explanation">Get keep-alive period</a></td><td>Server/ End device</td></tr><tr><td>19</td><td>All</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#get-network-join-retry-period-command-explanation">Get network join retry period</a></td><td>Server/ End device</td></tr><tr><td>1B</td><td>≥1.3</td><td><a href="/pages/1PERMskcIgROVuYwrsrm#get-uplink-messages-type-command-explanation">Get uplink messages type</a></td><td>Server/ End device</td></tr><tr><td>1C</td><td>≥1.3</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#set-1">Set device radio communication watch-dog parameters</a></td><td>Server</td></tr><tr><td>1D</td><td>≥1.3</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#get-1">Get device radio communication watch-dog parameters</a></td><td>Server/ End device</td></tr><tr><td>1E</td><td>All</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#set-2">Set send the button event later when allowed</a></td><td>Server</td></tr><tr><td>1F</td><td>All</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#get-3">Get send the button event later when allowed</a></td><td>Server/ End device</td></tr><tr><td>20</td><td>≥1.3</td><td><a href="/pages/yQ9eFzgXSWWVrbTKsxRf#clear-press-event-counter">Clear press event counter</a></td><td>Server</td></tr><tr><td>A4</td><td>≥1.3</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#get-lorawan-region">Get LoRaWAN Region</a></td><td>Server/ End device</td></tr><tr><td>A5</td><td>≥1.3</td><td><a href="/pages/gthetChGpGy77awAsM2d">Restart device</a></td><td>Server</td></tr><tr><td>A8</td><td>≥1.4</td><td><a href="/pages/O2pn0bATVJtjm3KYU9Yi#deep-sleep-activation">Set device deep sleep mode</a></td><td>Server</td></tr><tr><td>B1</td><td>≥1.3</td><td><a href="/pages/yQ9eFzgXSWWVrbTKsxRf#get-single-press-event-counter">Get single press event counter</a></td><td>Server/ End device</td></tr><tr><td>B2</td><td>≥1.3</td><td><a href="/pages/yQ9eFzgXSWWVrbTKsxRf#get-double-press-event-counter">Get double press event counter</a></td><td>Server/ End device</td></tr><tr><td>B3</td><td>≥1.3</td><td><a href="/pages/yQ9eFzgXSWWVrbTKsxRf#get-triple-press-event-counter">Get triple press event counter</a></td><td>Server/ End device</td></tr></tbody></table>


---

# 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-multipurpose-button-lorawan/mclimate-button-lorawan-device-communication-protocol/commands-cheat-sheet.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.
