1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/paho-mqtt: migrate to ztimer

This commit is contained in:
Alexandre Abadie 2021-11-05 16:50:53 +01:00
parent 52edeb3c09
commit 7c3bade90d
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 6 additions and 2 deletions

View File

@ -60,6 +60,9 @@ USEMODULE += sock_ip
USEMODULE += sock_udp
USEMODULE += sock_tcp
USEMODULE += ztimer
USEMODULE += ztimer_msec
####
include $(RIOTBASE)/Makefile.include

View File

@ -21,7 +21,8 @@
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "xtimer.h"
#include "timex.h"
#include "ztimer.h"
#include "shell.h"
#include "thread.h"
#include "mutex.h"
@ -294,7 +295,7 @@ int main(void)
{
#ifdef MODULE_LWIP
/* let LWIP initialize */
xtimer_sleep(1);
ztimer_sleep(ZTIMER_MSEC, 1 * MS_PER_SEC);
#endif
NetworkInit(&network);