diff --git a/README.md b/README.md index 303bcf4..96613e0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![](branding/logo.png) + doap ==== @@ -7,9 +9,25 @@ doap ## Usage -TODO: Add docs +Documentation is available [here](https://doap.dpldocs.info/). + +### 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 diff --git a/branding/logo.png b/branding/logo.png new file mode 100644 index 0000000..ce70fa1 Binary files /dev/null and b/branding/logo.png differ diff --git a/branding/logo.xcf b/branding/logo.xcf new file mode 100644 index 0000000..0560dcb Binary files /dev/null and b/branding/logo.xcf differ