From 411be88fc717a5e4cf3cce9c2661f8298a7aa6c9 Mon Sep 17 00:00:00 2001 From: baardl Date: Mon, 9 Dec 2019 15:12:13 +0100 Subject: [PATCH] #2 Easy getting started --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a3d5cc9..378a694 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Parse BacnetUDP and convert to Json. Must be GPLv3 due to bacnet4j dependency -## Json "shcema" +## Json "schema" ``` {"observation": { @@ -17,3 +17,11 @@ Parse BacnetUDP and convert to Json. Must be GPLv3 due to bacnet4j dependency } ``` +## How To + +String bacnetMessage -> You need to find the HexString from an Datagram Packet. [Baelung's UDP example](https://www.baeldung.com/udp-in-java) + +``` +import no.entra.bacnet.json.Bacnet2Json +String json = Bacnet2Json.hexStringToJson(backentMessage); +``` \ No newline at end of file