Skip to content

Commit 3c4c862

Browse files
committed
Updating based on the review comments
1 parent 5716ff4 commit 3c4c862

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • content/firmwareapi/pycom/network

content/firmwareapi/pycom/network/coap.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ Registers a callback function which will be called when a remote CoAp Server res
260260

261261
#### Coap.register_new_resource_handler(callback)
262262

263-
Registers a callback function which will be called when a a new resource has been created via PUT operation.
263+
Registers a callback function which will be called when a new resource has been created via PUT operation.
264264

265-
* `callback` is the callback to be registered. It must have the following arguments:
266-
* `resource` is the new resource which has been created
265+
* `callback` is the callback to be registered. The callback must have 1 argument:
266+
* `resource` is the new resource which has been created
267267

268268
#### Coap.new_client_session(destination, port=5683, protocol=UDP)
269269

@@ -305,8 +305,8 @@ Creates and sends a request to the external CoAp Server defined by the `destinat
305305

306306
Returns with a list of elements showing internal information about this CoAP Client Session:
307307

308-
* `destination` is the IPv4 Address of the CoAp Server where this CoAp Client Session has joined.
309-
* `port` is the port of the CoAp Server where this CoAp Client Session has joined.
308+
* `Item 0:` is the IPv4 Address of the CoAp Server where this CoAp Client Session has joined.
309+
* `Item 1:` is the port of the CoAp Server where this CoAp Client Session has joined.
310310

311311
## Class CoapResource
312312

0 commit comments

Comments
 (0)