Files
libcoap/examples/zephyr/test-cpp-src/src/test.cpp
T
Jon Shallow 152f6a8a58 Includes: Remove unnecessary include files
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.
2026-02-02 10:09:17 +00:00

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;
}