#include LOG_MODULE_REGISTER(coap_cpp_test, LOG_LEVEL_DBG); #include #include #include "coap3/coap.h" #include 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; }