mirror of
https://codeberg.org/uhppoted/uhppoted-lib-ada.git
synced 2026-08-20 18:35:53 -05:00
ADA crate for interfacing to the UHPPOTE access controllers.
- Ada 69.3%
- HTML 24.7%
- Go 4.8%
- Makefile 1.1%
- CSS 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .codegen | ||
| .github/workflows | ||
| adadoc | ||
| examples/cli | ||
| integration-tests | ||
| lib | ||
| .gitignore | ||
| API.md | ||
| CHANGELOG.md | ||
| LICENSE | ||
| Makefile | ||
| NOTES.md | ||
| README.md | ||
| TODO.md | ||
uhppoted-lib-ada
Standalone ADA library for the UHPPOTE access controllers.
A basic example CLI illustrating the use of the library can be found in the examples folder.
Release Notes
In Development
Installation
Using Alire:
alr with uhppoted_lib
Development
Requirements:
- gnat 15.1.2+
- Alire 2.1.0+
Building from source
Assuming you have Alire, gnat 15.12+ and make installed:
git clone https://codeberg.org/uhppoted/uhppoted-lib-ada/uhppoted-lib-ada.git
cd uhppoted-lib-ada
make build-all
If you prefer building manually:
git clone https://codeberg.org/uhppoted/uhppoted-lib-ada/uhppoted-lib-ada.git
cd uhppoted-lib-ada
cd lib && alr build
cd ../examples/cli && alr build
cd ../integration-tests && alr build
Notes:
- Building on MacOS Tahoe generates the following warning:
`clang: warning: overriding deployment version from '16.0' to '26.0' [-Woverriding-deployment-version]`
This is known bug in the GNAT FSF builds which mistakenly interprets the OS version for Tahoe (v26.x) as version 16.0:
- https://forum.ada-lang.io/t/gnat-toolchain-now-broken-after-os-upgrade-to-macos-26-tahoe-arm64/3843/8
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120645
- https://github.com/alire-project/GNAT-FSF-builds/issues/94
lint
- The .gpr file specifies
-gnatwaand-gnatWe. - AdaControl reports
[..]array delimiters as illegal characters although they have been recommended sinceada2022.
API
The API is documented in the API.md file - for convenience the available functions are listed below:
Find_ControllersGet_ControllerSet_IPv4Get_TimeSet_TimeGet_ListenerSet_ListenerGet_StatusGet_DoorSet_DoorSet_Door_PasscodesOpen_DoorGet_CardsGet_CardGet_Card_At_IndexPut_CardDelete_CardDelete_All_CardsGet_EventGet_Event_IndexSet_Event_IndexRecord_Special_EventsGet_Time_ProfileSet_Time_ProfileClear_Time_ProfilesAdd_TaskRefresh_Task_ListClear_Task_ListSet_PC_ControlSet_InterlockActivate_KeypadsGet_AntipassbackSet_AntipassbackSet_First_CardRestore_Default_ParametersListen
License
MIT.