mirror of
https://github.com/deavmi/doap
synced 2024-09-28 15:22:51 +02:00
1.1 KiB
1.1 KiB
doap
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.