- Ada 69.3%
- HTML 24.8%
- Go 4.7%
- Makefile 1.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
Current Release
0.9.1 - 2026-10-13
Feature parity
- Added check and retry for transport bound port conflict with destination port (send-to-self).
- Fixed compiler switches for building on MacOS 27.0.1.
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.git
cd uhppoted-lib-ada
make build-all
If you prefer building manually:
git clone https://codeberg.org/uhppoted/uhppoted-lib-ada.git
cd uhppoted-lib-ada
cd lib && alr build
cd ..
cd examples/cli && alr build
cd ..
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
- clang: error: invalid version number in '-mmacosx-version-min=18.0'
This is known bug in the GNAT FSF builds which doesn't correctly handle the Apple Silicon OS versioning:
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 License
Copyright (c) 2026 uhppoted
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT.