Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
#2 Easy getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
baardl committed Dec 9, 2019
1 parent 931e9fd commit 411be88
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Parse BacnetUDP and convert to Json. Must be GPLv3 due to bacnet4j dependency


## Json "shcema"
## Json "schema"

```
{"observation": {
Expand All @@ -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);
```

0 comments on commit 411be88

Please sign in to comment.