Skip to content

Commit b7fee66

Browse files
committed
mqtt-gateway v0.5.3
1 parent f8f7bea commit b7fee66

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

gateway/cs.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ func (cs *CS) unsubscribe() {
109109
func (cs *CS) pushHandler(msg client.Msg, err error) {
110110
// TODO: push messages
111111
if err != nil {
112-
log.Printf("push message: %s", msg)
113-
} else {
114112
log.Printf("push message error: %s", err)
113+
return
115114
}
115+
log.Printf("%s", msg)
116116
}
117117

118118
func (cs *CS) getEnabled(client *client.Client) hndFn {

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ module github.com/pico-cs/mqtt-gateway
22

33
go 1.19
44

5-
// replace github.com/pico-cs/go-client => ../go-client
6-
// replace github.com/pico-cs/go-client/client => ../go-client/client
5+
//replace github.com/pico-cs/go-client => ../go-client
6+
//replace github.com/pico-cs/go-client/client => ../go-client/client
77

88
require (
99
github.com/eclipse/paho.mqtt.golang v1.4.2
10-
github.com/pico-cs/go-client v0.2.2
10+
github.com/pico-cs/go-client v0.2.3
1111
golang.org/x/exp v0.0.0-20221217163422-3c43f8badb15
1212
gopkg.in/yaml.v3 v3.0.1
1313
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/eclipse/paho.mqtt.golang v1.4.2/go.mod h1:JGt0RsEwEX+Xa/agj90YJ9d9DH2
66
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
77
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
88
github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
9-
github.com/pico-cs/go-client v0.2.2 h1:y682p6Gbs51qHYAFUctIzz/xoQrkB3D174Uz78BS+J0=
10-
github.com/pico-cs/go-client v0.2.2/go.mod h1:ty2wUvjX3bS2gK/dgpGFOjBUFwijDvX+WnHFB5wVKQg=
9+
github.com/pico-cs/go-client v0.2.3 h1:SNvavTQuFq+wWqtaxJ8nAMdrXKo3hOYzXAphEvcN9/4=
10+
github.com/pico-cs/go-client v0.2.3/go.mod h1:ty2wUvjX3bS2gK/dgpGFOjBUFwijDvX+WnHFB5wVKQg=
1111
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1212
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
1313
go.bug.st/serial v1.4.1 h1:AwYUNixVf90XymNeJaUkMrPp+GZQe3RMFQmpVdHIUK8=

0 commit comments

Comments
 (0)