ports/esp32/apps/matter-lock/main/app_priv.h
openaliro/openaliro
Module

app_priv.h

ports/esp32/apps/matter-lock/main/app_priv.h

used by app_driver.cpp app_main.cpp app_shell.cpp

API

Ctypedef void *app_driver_handle_t

ports/esp32/apps/matter-lock/main/app_priv.h:18

Fapp_driver_handle_t app_driver_button_init()

ports/esp32/apps/matter-lock/main/app_priv.h:27

Initialize the button driver This initializes the button driver associated with the selected board. @return Handle on success. @return NULL in case of failure.

Fesp_err_t app_driver_led_init()

ports/esp32/apps/matter-lock/main/app_priv.h:33

Initialize the onboard WS2812 used as the bolt-state indicator. @return ESP_OK on success, error otherwise (the indicator then stays dark).

Fvoid app_commissioning_window_open()

ports/esp32/apps/matter-lock/main/app_priv.h:48

Open a basic Matter commissioning window. The recovery path for a device that is commissioned but unreachable: a commissioned device does not advertise commissionable, and with no working network no controller can reach it to open a window. Opening one here lets a controller re-push Wi-Fi credentials over BLE through the NetworkCommissioning cluster, keeping every fabric and the Aliro trust store. factoryreset is the only other way out of that corner and it takes both. Basic rather than enhanced, so the QR and manual codes already printed at boot still work. The open runs on the Matter task; failures are logged rather than returned, because both callers are fire-and-forget.

Fvoid app_print_onboarding_codes()

ports/esp32/apps/matter-lock/main/app_priv.h:56

Print the commissioning QR URL and manual pairing code to the console. Not PrintOnboardingCodes(): that logs at CHIP Progress level, which CONFIG_LOG_DEFAULT_LEVEL_WARN compiles out of the CHIP library entirely, so it emits nothing and no runtime log level brings it back. This printf's instead.

Fvoid app_driver_led_lock_state(bool locked, bool aliro)

ports/esp32/apps/matter-lock/main/app_priv.h:64

Drive the bolt-state indicator. @param[in] locked true to extinguish the LED, false to light it. @param[in] aliro true when the UWB approach path drove the unlock (lights blue instead of green). Ignored when locked is true.

Fesp_err_t app_driver_attribute_update(app_driver_handle_t driver_handle, uint16_t endpoint_id, uint32_t cluster_id, uint32_t attribute_id, esp_matter_attr_val_t *val)

ports/esp32/apps/matter-lock/main/app_priv.h:79

Driver Update This API should be called to update the driver for the attribute being updated. This is usually called from the common app_attribute_update_cb(). @param[in] endpoint_id Endpoint ID of the attribute. @param[in] cluster_id Cluster ID of the attribute. @param[in] attribute_id Attribute ID of the attribute. @param[in] val Pointer to esp_matter_attr_val_t. Use appropriate elements as per the value type. @return ESP_OK on success. @return error in case of failure.

Fvoid door_lock_init()

ports/esp32/apps/matter-lock/main/app_priv.h:85

The definition and invocation of this function are intended to resolve the issue: unable to link and call the callback functions defined in the door_lock_callbacks.cpp file.