From d7c0c64eb92b0fc89a036d1b6666357a40c2bba1 Mon Sep 17 00:00:00 2001 From: Smoke <86024507+crypto-smoke@users.noreply.github.com> Date: Sun, 18 Feb 2024 08:42:32 -1000 Subject: remove mqtt from radio package --- radio/mqtt.go | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 radio/mqtt.go 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 -} -- cgit v1.2.3