MoonIoTProtocol is a lightweight MoonBit toolkit for IoT frame parsing and simulation.
What it does
Encodes and decodes a compact telemetry frame format
Simulates device traces with simple packet dropping
Provides a small CLI demo and focused tests
Origin
This is an original MoonBit project created for the OSC2026 competition
No upstream code is copied into this repository
The package is intentionally small and self-contained so the source history stays easy to review
Project layout
mooniotprotocol.mbt: core library
mooniotprotocol_test.mbt: unit tests
cmd/main/main.mbt: demo entry point
Quick demo
moon run cmd/main
moon test
Why this project
The goal is to give MoonBit a practical, easy-to-read example in a mature domain: protocol handling, trace replay, and simulator-style testing. The scope is intentionally small enough to stay maintainable, but the design leaves room to grow into MQTT-like adapters, richer packet validation, and edge-device workflows.
MoonIoTProtocol
MoonIoTProtocol is a lightweight MoonBit toolkit for IoT frame parsing and simulation.
What it does
Origin
Project layout
mooniotprotocol.mbt: core librarymooniotprotocol_test.mbt: unit testscmd/main/main.mbt: demo entry pointQuick demo
Why this project
The goal is to give MoonBit a practical, easy-to-read example in a mature domain: protocol handling, trace replay, and simulator-style testing. The scope is intentionally small enough to stay maintainable, but the design leaves room to grow into MQTT-like adapters, richer packet validation, and edge-device workflows.
Acceptance checklist