Skip to content

Commit

Permalink
samples: net: http_get: add support for hl7800 modem
Browse files Browse the repository at this point in the history
Add overlay and small adjustments for using the hl7800 modem.
Works out of the box with pinnacle_100_dvk and mg100.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
  • Loading branch information
rerickson1 committed Jan 10, 2025
1 parent 13a9bc9 commit db9f3a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/net/common/net_sample_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ static void l4_event_handler(struct net_mgmt_event_callback *cb, uint32_t event,
struct net_if *iface)
{
switch (event) {
#if defined(CONFIG_MODEM_HL7800) && !defined(CONFIG_DNS_SERVER_IP_ADDRESSES)
case NET_EVENT_DNS_SERVER_ADD:
#else
case NET_EVENT_L4_CONNECTED:
#endif
LOG_INF("Network connectivity established and IP address assigned");
k_sem_give(&network_connected);
break;
Expand Down
3 changes: 3 additions & 0 deletions samples/net/sockets/http_get/overlay-hl7800.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CONFIG_DNS_SERVER_IP_ADDRESSES=n
CONFIG_NET_CONFIG_SETTINGS=n
CONFIG_NET_CONNECTION_MANAGER=y
4 changes: 4 additions & 0 deletions samples/net/sockets/http_get/overlay-tls.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ CONFIG_MBEDTLS_HASH_ALL_ENABLED=y
CONFIG_MBEDTLS_CMAC=y

CONFIG_NET_SOCKETS_SOCKOPT_TLS=y

# Debugging options
#CONFIG_MBEDTLS_DEBUG=y
#CONFIG_MBEDTLS_LOG_LEVEL_DBG=y

0 comments on commit db9f3a8

Please sign in to comment.