samples: net: sockets: civetweb

change project name to meaningfull one
add board name to system info

Signed-off-by: Alexander Kozhinov <AlexanderKozhinov@yandex.com>
This commit is contained in:
Alexander Kozhinov 2020-08-05 21:17:07 +02:00 committed by Anas Nashif
commit 5423b80163
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,6 @@
cmake_minimum_required(VERSION 3.13.1) cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(hello_world) project(civetweb)
target_sources(app PRIVATE src/main.c src/libc_extensions.c) target_sources(app PRIVATE src/main.c src/libc_extensions.c)

View file

@ -89,6 +89,7 @@ int system_info_handler(struct mg_connection *conn, void *cbdata)
mg_printf(conn, "<li>host os - %s</li>\n", info.os); mg_printf(conn, "<li>host os - %s</li>\n", info.os);
mg_printf(conn, "<li>server - civetweb %s</li>\n", info.version); mg_printf(conn, "<li>server - civetweb %s</li>\n", info.version);
mg_printf(conn, "<li>compiler - %s</li>\n", info.compiler); mg_printf(conn, "<li>compiler - %s</li>\n", info.compiler);
mg_printf(conn, "<li>board - %s</li>\n", CONFIG_BOARD);
mg_printf(conn, "</ul>\n"); mg_printf(conn, "</ul>\n");
mg_printf(conn, "</body></html>\n"); mg_printf(conn, "</body></html>\n");