Mocktastic: A Meshtastic Node on Arduino github.com · 20 points · 1 comments · H...
HN Best 200 @best
Mocktastic: A Meshtastic Node on Arduino github.com · 20 points · 1 comments · HN thread
TL;DR Mocktastic is an experimental, educational Meshtastic-compatible LoRa client written in C++ for ESP32 boards using the Arduino IDE, not a fork of official Meshtastic firmware. It has a DECODER mode (serial shell for sending and receiving Meshtastic text messages) and a SENSOR mode (DHT22 temperature and humidity reporting over the private channel), targeting the LilyGO T3 LoRa32 V1.6.1. The author says it has limited field testing and is not meant for production use.
- Compile-time modes: DECODER provides a serial shell (115200 baud) for public, private and direct messages; SENSOR turns the board into a DHT22 sensor that answers /dht on its private channel.
- Targets the LilyGO T3 LoRa32 V1.6.1 (ESP32-PICO with SX1276), with pin mappings given for the SX1276 and a DHT22 data pin on GPIO 21.
- Uses mbedTLS for cryptography during testing and Nano-Protobuf for protobuf encoding; host-side unit tests use doctest and run with make test.
- Radio defaults to EU Medium Fast (SF9, 250 kHz bandwidth, sync word 0x2B, 16-symbol preamble), and the user must configure channel names and keys in keys.h.
- Project code is split so protocol logic can be tested on a development machine while .ino code handles radio, serial, GPIO and sensor hardware.
Discussion The comment thread is essentially empty: one commenter replied with the two-word remark "And ESP32", which seems to point out that the project runs on ESP32 hardware. The post got 20 points but little discussion, so there is no substantive debate about the project.