Copyright ©

Mongoose OS Forum

ATTENTION! This forum has moved to:

Do not post any new messages.

CoAP option in smart.js

we are using smart.js for building simulation & test clients for  gateway device (Edition/Raspberry Pi) app development. SmartJS has inbuilt http API support, we could build REST API end for testing. no issues.

Wondering if the same can be done for CoAP and LWM2M protocol both are using UDP, (DTLS is not required). I learn that CoAP supported on mongoose, but do you have if any option to write UDP send/receive with smart.js? Also looking for TCP server (socket) programming support in JavaScript to help us to deploy minimal test Modbus Server for interoperablity.



  • What I am looking at is minimal udp sample program like below code sample taken from firmware.  I could not see direct TCP/UDP code sample for smartjs client.

    UDP client and server

    -- a udp server
    s:on("receive", function(s, c) print(c) end)
    -- a udp client
    cu:on("receive", function(cu, c) print(c) end)
    cu:connect(5683, "")

  • SergeySergey Dublin, Ireland
    We're working on a plain UDP support.
    CoAP binding is not yet done.

    Could you elaborate on your CoAP use case please - what project are you working on?
Sign In or Register to comment.