Skip to content

Commit 3905d00

Browse files
committed
Small fix in Coap example
1 parent 0034ce2 commit 3905d00

File tree

1 file changed

+0
-2
lines changed
  • content/firmwareapi/pycom/network

1 file changed

+0
-2
lines changed

content/firmwareapi/pycom/network/coap.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ wlan.connect('your-ssid', auth=(WLAN.WPA2, 'your-key'))
2626

2727
# Initialize Coap module as CoAp Server, enable new resources to be added via PUT
2828
Coap.init(str(wlan.ifconfig()[0]), service_discovery=True, dynamic_resources=True)
29-
# Register callback which will be called when new resource is added via PUT
30-
Coap.register_new_resource_handler(new_resource_callback)
3129

3230
# Add an example resource with URI "resource1" and value "default_value" and content format "plain text"
3331
r = Coap.add_resource("resource1", media_type=Coap.MEDIATYPE_TEXT_PLAIN, value="default_value")

0 commit comments

Comments
 (0)