目录

MoonIoTProtocol

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.

Acceptance checklist

  • Public repository
  • OSI-approved license
  • Runnable demo
  • Passing tests
  • Mooncakes publication after acceptance
关于

一个用 MoonBit 实现的轻量 IoT 协议解析与仿真工具包,支持自定义帧格式解析、传感器数据包编解码、设备状态机模拟、乱序/丢包/延迟场景测试,并提供可运行示例与测试套件,方便作为 MoonBit 生态中的协议与边缘设备开发基础库。

45.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802047560号