forked from amenzhinsky/iothub
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the MQTT layer publishing and receiving twin state is a []byte. This eliminates the conversion of that data to map[string]interface{} at the Client layer. I believe the original implementation expected twin data to only be key/value pairs. This was not the case for me and an interface{} type can not be indexed. Working with the byte array better works in my use case.
- Loading branch information
Showing
4 changed files
with
54 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
module github.com/dangeroushobo/iothub | ||
|
||
go 1.17 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/Azure/go-amqp v0.17.0 | ||
github.com/eclipse/paho.mqtt.golang v1.3.5 | ||
github.com/eclipse/paho.mqtt.golang v1.4.2 | ||
github.com/tidwall/gjson v1.14.3 | ||
) | ||
|
||
require ( | ||
github.com/gorilla/websocket v1.4.2 // indirect | ||
golang.org/x/net v0.0.0-20211020060615-d418f374d309 // indirect | ||
github.com/gorilla/websocket v1.5.0 // indirect | ||
github.com/tidwall/match v1.1.1 // indirect | ||
github.com/tidwall/pretty v1.2.0 // indirect | ||
golang.org/x/net v0.1.0 // indirect | ||
golang.org/x/sync v0.1.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters