module

Matter::Controller::Clusters::AccessControl

Class methods

encode_acl_tlv(entries : Array(Entry)) : Bytes
Source
parse_acl_json(json : String) : Array(Entry)

Parses the JSON format used by CHIP's chip-tool accesscontrol write acl ... and returns entries suitable for encoding into a TLV list for WriteRequest.

Supported keys:

  • privilege (UInt8)
  • authMode (UInt8)
  • subjects (array of UInt64)
  • targets (null or array of {endpoint, cluster, deviceType})
  • fabricIndex (ignored; server derives from session)
Source

Nested types