Skip to content

Commit

Permalink
change device test for status report
Browse files Browse the repository at this point in the history
  • Loading branch information
ruizeng committed Dec 23, 2015
1 parent 6dfc1f8 commit e7d3316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/device/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func (d *Device) messageHandler(client *MQTT.Client, msg MQTT.Message) {
switch msgtype {
case "c":
d.commandHandler(client, msg)
case "d":
case "s":
d.statusHandler(client, msg)
default:
fmt.Println("unsuported message type :", msgtype)
Expand Down

0 comments on commit e7d3316

Please sign in to comment.