Skip to content

Commit 2288b4e

Browse files
committed
add note about ocacli
1 parent 3192d04 commit 2288b4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ All APIs are async-safe and support both macOS and Linux: on macOS, [FlyingFox](
1818

1919
Example code can be found in [Examples](Examples).
2020

21+
[ocacli](https://github.com/PADL/ocacli) is a command-line utility for managing OCA devices that is implemented using SwiftOCA.
22+
2123
Support for AES70-2023 is in progress: adding new classes is straightforward, using the `@OcaProperty` and `@OcaDeviceProperty` wrappers. For a class with only properties, it is only necessary to declare the property and accessor IDs, and all logic including event notification will be handled at runtime. For custom logic, override the `handleCommand(from:)` method. Custom access control can be implemented at the object or device level by overriding `ensureReadable(by:command)` and `ensureWritable(by:command)`.
2224

2325
Serialization to JSON types is provided using the `jsonObject` and `deserialize(jsonObject:)` methods, which walk the list of declared properties, encoding non-JSON types using Codable.

0 commit comments

Comments
 (0)