5 ms·
For those unfamiliar with CoAP, it's a REST based protocol for machine-to-machine communication targeted at IoT (Internet of Things) scenarios particularly in H
by johnlbevan2 9y ago
For those unfamiliar with CoAP, it's a REST based protocol for machine-to-machine communication targeted at IoT (Internet of Things) scenarios particularly in Home Automation.
NB: Unlike REST though, URLS begin COAP:// instead of HTTP:// or HTTPS://.
This site gives a good overview: https://www.slideshare.net/jvermillard/co-ap https://www.slideshare.net/jvermillard/co-ap
Whilst this gives a lot more info: http://coap.technology/ http://coap.technology/
- geonnave 9y agos/Unlike REST/Unlike HTTP
- shshhdhs 9y agoI think your regular expression needs a /g at the end, no? Edit: This was a serious question, not sure I deserve multiple downvotes
- peterwwillis 9y agoIt only needs "/". "g" finds all matches, but there is only one match in the string.
- newman314 9y agoStill needs the trailing /
- skywhopper 9y agoOnly for sed/perl. Not if you are using vim (although in that case it's missing the leading `:`).
- mstade 9y agoAlso, the RFC is quite a nice read: https://tools.ietf.org/html/rfc7252 https://tools.ietf.org/html/rfc7252 I particularly like the introduction, which succinctly explains the value in realizing a subset of REST common with HTTP, while not just blindly trying to make a compressed version of HTTP. The end result is a protocol which is quite easy to map to each other, not just in terms of implementation but also in terms of mindset. Being familiar with HTTP means you won't feel completely lost in trying to learn CoAP, which is pretty cool.
- MrBuddyCasino 9y agoThis is great. Thanks for the link! Its well written and shows great clarity of thought. The practical considerations are always mentioned, and they thought of everything, even ddos amplification attacks. A thing of beauty.