A TCP version of CoAP is under specification: https://tools.ietf.org/html/draft-tschofenig-core-coap-tcp-tls-02 The message format is not so different, would be nice to support it