mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-16 20:52:57 +08:00
also fix cb prototype description
This commit is contained in:
parent
1697126a15
commit
f42fdb1a76
@ -142,8 +142,8 @@ Publishes a message.
|
||||
Subscribes to one or several topics.
|
||||
|
||||
#### Syntax
|
||||
`mqtt:subscribe(topic, qos[, function(client, topic, message)])`
|
||||
`mqtt:subscribe(table[, function(client, topic, message)])`
|
||||
`mqtt:subscribe(topic, qos[, function(client)])`
|
||||
`mqtt:subscribe(table[, function(client)])`
|
||||
|
||||
#### Parameters
|
||||
- `topic` a [topic string](http://www.hivemq.com/blog/mqtt-essentials-part-5-mqtt-topics-best-practices)
|
||||
|
Loading…
x
Reference in New Issue
Block a user