mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-11-11 21:10:04 +01:00
## [2.0.20~2](https://github.com/espressif/esp-protocols/commits/mosq-v2.0.20_2)### Features- Allow user to enable SYS topic ([905b84fb](https://github.com/espressif/esp-protocols/commit/905b84fb))### Bug Fixes- Remove temp modification of IDF files ([9162de11](https://github.com/espressif/esp-protocols/commit/9162de11))- Add a note about stack size ([dbd164dd](https://github.com/espressif/esp-protocols/commit/dbd164dd))
22 lines
391 B
C
22 lines
391 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Roger Light <roger@atchoo.org>
|
|
*
|
|
* SPDX-License-Identifier: EPL-2.0
|
|
*
|
|
* SPDX-FileContributor: 2025 Espressif Systems (Shanghai) CO LTD
|
|
*/
|
|
|
|
#include <time.h>
|
|
#include "time_mosq.h"
|
|
|
|
#include "esp_timer.h"
|
|
|
|
void mosquitto_time_init(void)
|
|
{
|
|
}
|
|
|
|
time_t mosquitto_time(void)
|
|
{
|
|
return esp_timer_get_time() / 1000000; // Convert microseconds to seconds
|
|
}
|