-->
Page 1 of 1

CoAP functions aren't displayed on ./well-known/core

PostPosted: Fri May 08, 2015 3:54 pm
by cocojackr42
I've exposed my function like this:
Code: Select allfunction setRgb(payload)
    result = ""
    pcall(function() result = fSetRgb(payload) end)
    return result
end
cs:func("setRgb")


but is not displayed under well-known. I am using the Firefox Plugin Copper.
I can call the method using the path coap://XXX.XXX.XXX.XXX:5683/v1/f/setRgb

is this a known behavior or do I need to enable something?

Re: CoAP functions aren't displayed on ./well-known/core

PostPosted: Thu Jun 11, 2015 5:28 pm
by Yap Jap
Apparently, resource discovery is supposed to only return available data resources, not POST-endpoints.
Check out https://tools.ietf.org/html/draft-ietf- ... ection-6.1