nRF Connect SDK API 2.8.99
|
int bt_mesh_time_srv_status | ( | struct bt_mesh_time_srv * | srv, |
uint64_t | uptime, | ||
struct bt_mesh_time_status * | status ) |
#include <include/bluetooth/mesh/time_srv.h>
Get the time status at a given uptime.
Converts the device uptime (from k_uptime_get
) to TAI time.
k_uptime_get
must be used with caution, since there is no guarantee that the output data is fully reliable.[in] | srv | Time Server instance. |
[in] | uptime | Uptime at the desired point in time. |
[out] | status | The device's Time Status at the given uptime. |
0 | Successfully retrieved the Time status. |
-EAGAIN | Invalid uptime input. Asking for status that is in the past. |