diff options
| author | Smoke <[email protected]> | 2024-02-18 08:42:32 -1000 |
|---|---|---|
| committer | Smoke <[email protected]> | 2024-02-18 08:42:45 -1000 |
| commit | d7c0c64eb92b0fc89a036d1b6666357a40c2bba1 (patch) | |
| tree | 9a7a9c4f97ce4c9a5e000fb7401c8ebcb9815488 | |
| parent | 59cf28f56db53cddb9a1704fb34760dbc0377ec8 (diff) | |
remove mqtt from radio package
| -rw-r--r-- | radio/mqtt.go | 29 |
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 -} |
