aboutsummaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorNoah Stride <[email protected]>2024-02-05 15:32:49 +0000
committerGitHub <[email protected]>2024-02-05 05:32:49 -1000
commit598d6e45b2a79b169056c5abe7a6266aa6d5cb23 (patch)
tree5a628024bd06a73fda221712a87eaf20b30ccf29 /go.mod
parent95a38401baeb4df14d701405609a3dd26ffd747f (diff)
Refactor Meshtastic "Stream" Protocol handling and implement TCP listener (#5)
* Start hacking on a "StreamConn" * Tidy up write side * Write basic send/receive test * Add support for "wake" Start2 spam * Add test case for reply * Add TCP listener to meshtastic stream conn * Very ugly basic impl that supports `meshtastic --nodes` * Support graceful disconnection command from client * Refactor handling for handleToRadioWantConfigID into it's own method * Send FromRadio messages to clients * Refactor client logic into own type * Fix up serial support for new client * Fix eample * Remove datadump * Make TCP listener optional * Add locking for reading/writing from the connection * Explain knownDevices * Properly close streamConn in example
Diffstat (limited to 'go.mod')
-rw-r--r--go.mod7
1 files changed, 5 insertions, 2 deletions
diff --git a/go.mod b/go.mod
index faec524..50bfafc 100644
--- a/go.mod
+++ b/go.mod
@@ -6,8 +6,9 @@ require (
buf.build/gen/go/meshtastic/protobufs/protocolbuffers/go v1.32.0-20240117225219-a9940c43223e.1
github.com/charmbracelet/log v0.3.1
github.com/eclipse/paho.mqtt.golang v1.4.3
- github.com/kylelemons/godebug v1.1.0
+ github.com/stretchr/testify v1.8.4
go.bug.st/serial v1.6.1
+ golang.org/x/sync v0.1.0
google.golang.org/protobuf v1.32.0
)
@@ -15,6 +16,7 @@ require (
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/charmbracelet/lipgloss v0.9.1 // indirect
github.com/creack/goselect v0.1.2 // indirect
+ github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
@@ -22,9 +24,10 @@ require (
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
+ github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/net v0.8.0 // indirect
- golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.13.0 // indirect
+ gopkg.in/yaml.v3 v3.0.1 // indirect
)