Add CoAP over Websocket interface in cloud
[platform/upstream/iotivity.git] / cloud / stack / src / main / java / org / iotivity / cloud / base / protocols / coap / CoapEncoder.java
index 53c3cc4..d65c02c 100644 (file)
@@ -70,6 +70,10 @@ public class CoapEncoder extends MessageToByteEncoder<CoapMessage> {
         }
     }
 
+    public void encode(CoapMessage msg, ByteBuf out) throws Exception {
+        encode(null, msg, out);
+    }
+
     private void calcShimHeader(CoapMessage coapMessage, ByteBuf byteBuf,
             long length) {
         if (length < 13) {