Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ ____
### setHost*

```nim
proc setHost*(ctx: MqttCtx, host: string, port: int=1883, sslOn=false) =
proc setHost*(ctx: MqttCtx, host: string, port: int = 1883, sslOn = false) =
```

Set the MQTT host.
Expand All @@ -286,7 +286,7 @@ ____
### setWill*

```nim
proc setWill*(ctx: MqttCtx, topic, msg: string, qos=0, retain=false) =
proc setWill*(ctx: MqttCtx, topic, msg: string, qos = 0, retain = false) =
```

Set the clients will.
Expand Down Expand Up @@ -345,7 +345,7 @@ ____
### publish*

```nim
proc publish*(ctx: MqttCtx, topic: string, message: string, qos=0, retain=false) {.async.} =
proc publish*(ctx: MqttCtx, topic: string, message: string, qos = 0, retain = false) {.async.} =
```

Publish a message.
Expand Down Expand Up @@ -376,7 +376,7 @@ ____
### subscribe*

```nim
proc subscribe*(ctx: MqttCtx, topic: string, qos: int, callback: PubCallback): Future[void] =
proc subscribe*(ctx: MqttCtx, topic: string, qos: QoS, callback: PubCallback): Future[void] =
```

Subscribe to a topic.
Expand Down
2 changes: 1 addition & 1 deletion config/nmqtt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ clientid_spaces = false
# If empty client id's is allowed. If it is set to `true`, the client will be
# assigned a random integer as the client id.
#
clientid_empty = false
clientid_empty = true

#
# If set to true the publishers client id will be inserted in front of the
Expand Down
Loading
Loading