doap/README.md

1.1 KiB

doap

DUB DUB DUB D Coverage Status

doap is a CoAP library for the D programming language.

Usage

Documentation is available here.

Making a request

CoapClient client = new CoapClient("coap.me", 5683);
    
CoapRequestFuture future = client.newRequestBuilder()
                        .payload(cast(ubyte[])"Hello this is Tristan!")
                        .token([69])
                        .post();


writeln("Future start");
CoapPacket response  = future.get();
writeln("Future done");
writeln("Got response: ", response);

client.close();

License

This project is licensed under the LGPL v3.0.