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:
parent
52edeb3c09
commit
7c3bade90d
@ -60,6 +60,9 @@ USEMODULE += sock_ip
|
|||||||
USEMODULE += sock_udp
|
USEMODULE += sock_udp
|
||||||
USEMODULE += sock_tcp
|
USEMODULE += sock_tcp
|
||||||
|
|
||||||
|
USEMODULE += ztimer
|
||||||
|
USEMODULE += ztimer_msec
|
||||||
|
|
||||||
####
|
####
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "xtimer.h"
|
#include "timex.h"
|
||||||
|
#include "ztimer.h"
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
@ -294,7 +295,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
#ifdef MODULE_LWIP
|
#ifdef MODULE_LWIP
|
||||||
/* let LWIP initialize */
|
/* let LWIP initialize */
|
||||||
xtimer_sleep(1);
|
ztimer_sleep(ZTIMER_MSEC, 1 * MS_PER_SEC);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NetworkInit(&network);
|
NetworkInit(&network);
|
||||||
|
Loading…
Reference in New Issue
Block a user