AX.25 Amateur Radio Link-Layer Protocol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+27 -4
+18 -4
README.md
··· 13 13 14 14 ## Installation 15 15 16 - `opam install ax25` will install this library. 16 + Install with opam: 17 + 18 + ```sh 19 + $ opam install ax25 20 + ``` 21 + 22 + If opam cannot find the package, it may not yet be released in the public 23 + `opam-repository`. Add the overlay repository, then install it: 24 + 25 + ```sh 26 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 27 + $ opam update 28 + $ opam install ax25 29 + ``` 17 30 18 31 ## Usage 19 32 ··· 29 42 let encoded = kiss_encode frame 30 43 31 44 (* Decode received frame *) 32 - match kiss_decode data with 33 - | Ok frame -> Format.printf "%a@." pp frame 34 - | Error e -> Format.printf "Error: %a@." pp_error e 45 + let () = 46 + match kiss_decode encoded with 47 + | Ok frame -> Format.printf "%a@." pp frame 48 + | Error e -> Format.printf "Error: %a@." pp_error e 35 49 ``` 36 50 37 51 ## Reference
+1
ax25.opam
··· 15 15 "fmt" 16 16 "wire" 17 17 "alcotest" {with-test} 18 + "mdx" {with-test} 18 19 "alcobar" {with-test} 19 20 "odoc" {with-doc} 20 21 ]
+6
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files 7 + README.md 8 + ) 9 + (libraries ax25))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name ax25) 3 4 (source (tangled gazagnaire.org/ocaml-ax25)) 4 5 (formatting (enabled_for ocaml)) ··· 20 21 fmt 21 22 wire 22 23 (alcotest :with-test) 24 + (mdx :with-test) 23 25 (alcobar :with-test)))