CoAP library for D
Go to file
Tristan B. Velloza Kildaire 2ead083ca8 Dub
- Require a minimum version of `0.1.0` of the niknaks library
2023-10-01 18:12:43 +02:00
.github/workflows Update d.yml 2023-09-25 13:53:09 +02:00
branding Branding 2023-09-22 18:46:18 +02:00
source/doap Client 2023-09-30 20:35:34 +02:00
.gitignore - Fixed `.gitignore` 2023-09-11 21:37:05 +02:00
LICENSE - Added LICENSE 2023-09-12 18:39:35 +02:00
README.md Update README.md 2023-09-25 14:52:50 +02:00
dub.json Dub 2023-10-01 18:12:43 +02:00
todo.md Create todo.md 2023-09-29 15:04:37 +02:00

README.md

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.