File tree Expand file tree Collapse file tree 5 files changed +4
-73
lines changed
samples/subsys/mgmt/hawkbit Expand file tree Collapse file tree 5 files changed +4
-73
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ set(KCONFIG_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/Kconfig)
1010find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
1111project (hawkbit)
1212
13- FILE (GLOB app_sources src/*.c)
14- target_sources (app PRIVATE ${app_sources} )
15- target_sources_ifdef(CONFIG_NET_DHCPV4 app PRIVATE src/dhcp.c)
13+ target_sources (app PRIVATE src/main.c)
1614
1715include (${ZEPHYR_BASE} /samples/net/common/common.cmake)
1816
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ CONFIG_MAIN_STACK_SIZE=4096
2323CONFIG_HEAP_MEM_POOL_SIZE=4096
2424CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
2525
26+ CONFIG_NET_CONFIG_SETTINGS=y
27+ CONFIG_NET_CONFIG_NEED_IPV4=y
28+
2629CONFIG_NET_IPV4=y
2730CONFIG_NET_IPV6=n
2831
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212#include <zephyr/logging/log.h>
1313#include <zephyr/data/json.h>
1414
15- #include "dhcp.h"
16-
1715#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS )
1816#include <zephyr/net/tls_credentials.h>
1917#include "ca_certificate.h"
@@ -62,8 +60,6 @@ int main(void)
6260 LOG_INF ("hawkBit sample app started" );
6361 LOG_INF ("Image build time: " __DATE__ " " __TIME__ );
6462
65- app_dhcpv4_startup ();
66-
6763#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS )
6864 tls_credential_add (CA_CERTIFICATE_TAG , TLS_CREDENTIAL_CA_CERTIFICATE ,
6965 ca_certificate , sizeof (ca_certificate ));
You can’t perform that action at this time.
0 commit comments