mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-09 17:35:28 +00:00
.
This commit is contained in:
@@ -62,6 +62,13 @@ It’s intended to be sent from a transmitting device (like a remote control or
|
||||
<p>When used with communication protocols like ESP-NOW, this struct is <strong>encoded</strong> into a byte stream, then
|
||||
<strong>transmitted</strong> at regular intervals or in response to user input, and finally
|
||||
<strong>decoded</strong> on the receiving end to control hardware.</p>
|
||||
<div class="admonition-what-is-struct admonition">
|
||||
<p class="admonition-title">What is struct?</p>
|
||||
<p>In C programming, a struct (short for structure) is a user-defined data type that lets you group multiple variables of different types together under a
|
||||
single name. It’s like a container that holds related information — perfect for organizing data that logically belongs together. Structs are especially
|
||||
powerful in systems programming, embedded projects, and when dealing with raw binary data — like parsing sensor input or transmitting control packets over
|
||||
ESP-NOW.</p>
|
||||
</div>
|
||||
<section id="data-payload">
|
||||
<h2>Data Payload<a class="headerlink" href="#data-payload" title="Link to this heading">¶</a></h2>
|
||||
<p><em>x_axis</em> and <em>y_axis</em> fields capture analog input from a joystick, determining direction and speed.
|
||||
|
Reference in New Issue
Block a user