We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0034ce2 commit 3905d00Copy full SHA for 3905d00
content/firmwareapi/pycom/network/coap.md
@@ -26,8 +26,6 @@ wlan.connect('your-ssid', auth=(WLAN.WPA2, 'your-key'))
26
27
# Initialize Coap module as CoAp Server, enable new resources to be added via PUT
28
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)
31
32
# Add an example resource with URI "resource1" and value "default_value" and content format "plain text"
33
r = Coap.add_resource("resource1", media_type=Coap.MEDIATYPE_TEXT_PLAIN, value="default_value")
0 commit comments