kevoree / kevoree-web-editor

Kevoree model editor
http://editor.kevoree.org
6 stars 2 forks source link

Maybe try to add a Coap client #60

Open maxleiko opened 9 years ago

kYc0o commented 9 years ago

Hello!

Maybe this could be helpful: https://github.com/mcollina/node-coap

As I can understand, we need only https://github.com/mcollina/node-coap#request to get the model and put a new model. The address should be in ipv6

kYc0o commented 9 years ago

Another one but at a first look simpler:

https://code.google.com/p/jscoap/source/browse/coap.js

maxleiko commented 9 years ago

This is just the definition of a CoapMessage and a deserializer and a serializer. Nothing shows how to send/receive messages using the procotol. But looking at the sources, it looks like it's wrapping a CoAP message into a WebSocket message so that it can be transfered over WS. Problem is that it would need some unwrapping at the end.