@@ -173,6 +173,7 @@ struct bt_mesh_prov {
173173 */
174174 void (* capabilities )(const struct bt_mesh_dev_capabilities * cap );
175175
176+ #if defined CONFIG_BT_MESH_PROV_OOB_API_LEGACY
176177 /** @brief Output of a number is requested.
177178 *
178179 * This callback notifies the application that it should
@@ -183,7 +184,21 @@ struct bt_mesh_prov {
183184 *
184185 * @return Zero on success or negative error code otherwise
185186 */
186- int (* output_number )(bt_mesh_output_action_t act , uint32_t num );
187+ int (* output_number )(bt_mesh_output_action_t act , uint32_t num ) __deprecated ;
188+ #else
189+ /** @brief Output of a numeric value is requested.
190+ *
191+ * This callback notifies the application that it should
192+ * output the given numeric value using the given action.
193+ *
194+ * @param act Action for outputting the numeric value.
195+ * @param numeric memory with numeric value in the little endian format to be outputted.
196+ * @param size size of the numeric value in bytes.
197+ *
198+ * @return Zero on success or negative error code otherwise
199+ */
200+ int (* output_numeric )(bt_mesh_output_action_t act , uint8_t * numeric , size_t size );
201+ #endif
187202
188203 /** @brief Output of a string is requested.
189204 *
@@ -202,7 +217,7 @@ struct bt_mesh_prov {
202217 * request input from the user using the given action. The
203218 * requested input will either be a string or a number, and
204219 * the application needs to consequently call the
205- * bt_mesh_input_string() or bt_mesh_input_number () functions
220+ * bt_mesh_input_string() or bt_mesh_input_numeric () functions
206221 * once the data has been acquired from the user.
207222 *
208223 * @param act Action for inputting data.
@@ -313,7 +328,7 @@ struct bt_mesh_rpr_node;
313328
314329/** @brief Provide provisioning input OOB string.
315330 *
316- * This is intended to be called after the bt_mesh_prov input callback
331+ * This is intended to be called after the @ref bt_mesh_prov:: input callback
317332 * has been called with BT_MESH_ENTER_STRING as the action.
318333 *
319334 * @param str String.
@@ -322,16 +337,30 @@ struct bt_mesh_rpr_node;
322337 */
323338int bt_mesh_input_string (const char * str );
324339
340+ #if defined CONFIG_BT_MESH_PROV_OOB_API_LEGACY
325341/** @brief Provide provisioning input OOB number.
326342 *
327- * This is intended to be called after the bt_mesh_prov input callback
328- * has been called with BT_MESH_ENTER_NUMBER as the action.
343+ * This is intended to be called after the @ref bt_mesh_prov:: input callback
344+ * has been called with @ref BT_MESH_ENTER_NUMBER as the action.
329345 *
330346 * @param num Number.
331347 *
332348 * @return Zero on success or (negative) error code otherwise.
333349 */
334- int bt_mesh_input_number (uint32_t num );
350+ __deprecated int bt_mesh_input_number (uint32_t num );
351+ #endif
352+
353+ /** @brief Provide provisioning input OOB numeric value.
354+ *
355+ * This is intended to be called after the @ref bt_mesh_prov::input callback
356+ * has been called with @ref BT_MESH_ENTER_NUMBER as the action.
357+ *
358+ * @param numeric Pointer to the numeric value in little endian.
359+ * @param size Size of the numeric value in bytes (this is not OOB size).
360+ *
361+ * @return Zero on success or (negative) error code otherwise.
362+ */
363+ int bt_mesh_input_numeric (uint8_t * numeric , size_t size );
335364
336365/** @brief Provide Device public key.
337366 *
@@ -347,7 +376,7 @@ int bt_mesh_prov_remote_pub_key_set(const uint8_t public_key[64]);
347376 *
348377 * Instruct the unprovisioned device to use the specified Input OOB
349378 * authentication action. When using @ref BT_MESH_PUSH, @ref BT_MESH_TWIST or
350- * @ref BT_MESH_ENTER_NUMBER, the @ref bt_mesh_prov::output_number callback is
379+ * @ref BT_MESH_ENTER_NUMBER, the @ref bt_mesh_prov::output_numeric callback is
351380 * called with a random number that has to be entered on the unprovisioned
352381 * device.
353382 *
@@ -372,7 +401,7 @@ int bt_mesh_auth_method_set_input(bt_mesh_input_action_t action, uint8_t size);
372401 *
373402 * When using @ref BT_MESH_BLINK, @ref BT_MESH_BEEP, @ref BT_MESH_VIBRATE
374403 * or @ref BT_MESH_DISPLAY_NUMBER, and the application has to call
375- * @ref bt_mesh_input_number with the random number indicated by
404+ * @ref bt_mesh_input_numeric with the random number indicated by
376405 * the unprovisioned device.
377406 *
378407 * When using @ref BT_MESH_DISPLAY_STRING, the application has to call
0 commit comments