aboutsummaryrefslogtreecommitdiff
path: root/radio
diff options
context:
space:
mode:
authorSmoke <[email protected]>2024-02-18 08:42:32 -1000
committerSmoke <[email protected]>2024-02-18 08:42:45 -1000
commitd7c0c64eb92b0fc89a036d1b6666357a40c2bba1 (patch)
tree9a7a9c4f97ce4c9a5e000fb7401c8ebcb9815488 /radio
parent59cf28f56db53cddb9a1704fb34760dbc0377ec8 (diff)
remove mqtt from radio package
Diffstat (limited to 'radio')
-rw-r--r--radio/mqtt.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/radio/mqtt.go b/radio/mqtt.go
deleted file mode 100644
index c93fbad..0000000
--- a/radio/mqtt.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package radio
-
-import (
- mqtt "github.com/eclipse/paho.mqtt.golang"
- "time"
-)
-
-// some debugging junk that needs to be deleted
-type FakeRadio struct {
- ID uint32
-}
-
-func NewFakeRadio() (*FakeRadio, error) {
- opts := mqtt.NewClientOptions().AddBroker("tcp://mqtt.meshtastic.org:1883").SetClientID("poopypants").SetUsername("meshdev").SetPassword("large4cats")
- opts.SetKeepAlive(2 * time.Second)
- //opts.SetDefaultPublishHandler(f)
- opts.SetPingTimeout(1 * time.Second)
-
- c := mqtt.NewClient(opts)
- if token := c.Connect(); token.Wait() && token.Error() != nil {
- panic(token.Error())
- }
- ugh := c.Subscribe("msh/2/c/#", 0, func(client mqtt.Client, message mqtt.Message) {
-
- })
- _ = ugh
-
- return nil, nil
-}