#include <include/bluetooth/mesh/time_srv.h>
Get the device local time at a given uptime.
- Note
- This function does not support local time lookups for uptimes that occurred before the last received set- or status update. In addition, lookups for uptimes that happened before
k_uptime_get
must be used with caution, since there is no guarantee that the output data is fully reliable.
- Parameters
-
[in] | srv | Time Server instance. |
[in] | uptime | Uptime at the desired point in time. |
- Return values
-
Pointer | to time struct if successful, NULL otherwise. |