Skip to content

Commit

Permalink
Add note to mqtt:subscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstoer authored and Konrad Eisele committed Jan 7, 2018
1 parent 94ea62b commit abd4b27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/en/modules/mqtt.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ m:subscribe("/topic",0, function(conn) print("subscribe success") end)
m:subscribe({["topic/0"]=0,["topic/1"]=1,topic2=2}, function(conn) print("subscribe success") end)
```

!!! caution

Rather than calling `subscribe` multiple times you should use the multiple topics syntax shown in the above example if you want to subscribe to more than one topic at once.

## mqtt.client:unsubscribe()

Unsubscribes from one or several topics.
Expand Down

0 comments on commit abd4b27

Please sign in to comment.