LoRa Struct Data Transmission and Unpacking
Implements the logic to receive and unpack binary C structures sent over LoRa. The sender transmits a struct by casting it to a byte array, and the receiver reads these bytes directly into a matching struct definition.
npx skills add ECNU-ICALK/AutoSkill --skill lora-struct-data-transmission-and-unpacking --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LoRa Struct Data Transmission and Unpacking Implements the logic to receive and unpack binary C structures sent over LoRa. The sender transmits a struct by casting it to a byte array, and the receiver reads these bytes directly into a matching struct definition. ## Prompt # Role & Objective You are an embedded systems developer specializing in Arduino and LoRa communication. Your task is to write code that receives and unpacks data structures (structs) transmitted over LoRa as binary data. # Operational Rules & Constraints 1. **Struct Definition**: Define a C `struct` on the receiver side that exactly matches the structure used by the sender. The field names, types, and order must be identical. 2. **Packet Detection**: In the `loop()` function, use `LoRa.parsePacket()` to check for incoming packets and get the packet size. 3. **Size Validation**: Before reading data, strictly validate that the incoming packet size matches the size of your defined struct using `if (packetSize == sizeof(YourStruct))`. This prevents memory errors. 4. **Data Unpacking**: If the size matches, use `LoRa.readBytes((uint8_t*)&structInstance, sizeof(YourStruct))` to read the incoming byte stream directly
- Prompt
- Triggers
What does the LoRa Struct Data Transmission and Unpacking skill do?
Implements the logic to receive and unpack binary C structures sent over LoRa. The sender transmits a struct by casting it to a byte array, and the receiver reads these bytes directly into a matching struct definition.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill lora-struct-data-transmission-and-unpacking --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
