esp_ble_mesh_register_custom_model_callback() function
Register BLE Mesh callback for user-defined models' operations. This callback can report the following events generated for the user-defined models: - Call back the messages received by user-defined client and server models to the application layer; - If users call esp_ble_mesh_server/client_model_send, this callback notifies the application layer of the send_complete event; - If user-defined client model sends a message that requires response, and the response message is received after the timer expires, the response message will be reported to the application layer as published by a peer device; - If the user-defined client model fails to receive the response message during a specified period of time, a timeout event will be reported to the application layer.
The client models (i.e. Config Client model, Health Client model, Generic Client models, Sensor Client model, Scene Client model and Lighting Client models) that have been realized internally have their specific register functions. For example, esp_ble_mesh_register_config_client_callback is the register function for Config Client Model.
Examples
esp_ble_mesh_register_custom_model_callback() is referenced by 8 libraries and example projects: