mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 10:07:08 +03:00
Include common system header files in coap_internal.h based on HAVE_*H definitions. Remove these system header files from include/*/*.h. Add in system header files where appropriate in various apps.
22 lines
408 B
C++
22 lines
408 B
C++
#include <zephyr/logging/log.h>
|
|
LOG_MODULE_REGISTER(coap_cpp_test, LOG_LEVEL_DBG);
|
|
|
|
#include <zephyr/kernel.h>
|
|
#include <errno.h>
|
|
#include "coap3/coap.h"
|
|
#include <stdio.h>
|
|
|
|
coap_str_const_t *xxx_libcoap_get_version() {
|
|
coap_str_const_t *ver;
|
|
|
|
ver = coap_make_str_const(LIBCOAP_PACKAGE_VERSION);
|
|
printf("Version: %s\n", ver->s);
|
|
return ver;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
xxx_libcoap_get_version();
|
|
return 0;
|
|
}
|