Skip to content

Make examples more regularized and focused, and add contribution guidelines for the examples folder#928

Merged
ianmcorvidae merged 4 commits into
meshtastic:masterfrom
ianmcorvidae:examples
Jun 1, 2026
Merged

Make examples more regularized and focused, and add contribution guidelines for the examples folder#928
ianmcorvidae merged 4 commits into
meshtastic:masterfrom
ianmcorvidae:examples

Conversation

@ianmcorvidae
Copy link
Copy Markdown
Contributor

Includes the example from #739 as part of this.

This should mean a little less anything-goes in the examples folder, hopefully. Probably still more we could do to make that nice, but this is an okay start.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.41%. Comparing base (ff26f97) to head (81ae8b6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #928   +/-   ##
=======================================
  Coverage   62.41%   62.41%           
=======================================
  Files          25       25           
  Lines        4497     4497           
=======================================
  Hits         2807     2807           
  Misses       1690     1690           
Flag Coverage Δ
unittests 62.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ianmcorvidae ianmcorvidae merged commit d1f3552 into meshtastic:master Jun 1, 2026
13 checks passed
@ianmcorvidae ianmcorvidae deleted the examples branch June 1, 2026 00:59
jeremiah-k added a commit to jeremiah-k/mtjk that referenced this pull request Jun 1, 2026
…htastic#928

Ports the 6 new files from upstream master 81ae8b6 (PR meshtastic#928 by ianmcorvidae):
- examples/CONTRIBUTING.md
- examples/tcp_connection_info_once.py
- examples/tcp_pubsub_send_and_receive.py (replacement for pub_sub_example*.py)
- examples/meshtastic_serial_message_reader.py
- examples/textchat.py
- examples/replymessage.py

The rewrites of existing example files in 81ae8b6 (get_hw.py, hello_world_serial.py,
info_example.py, scan_for_devices.py, set_owner.py, show_ports.py, tcp_gps_example.py,
waypoint.py) are skipped because develop's versions are already more robust
(context managers, type hints, stricter error handling) than master's modernization.

Upstream commit: 81ae8b6 (Make examples more regularized and focused)
Original author: Ian McEwen <ian@ianmcorvidae.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants