Skip to content

mrzhuyuanheng/zephyr_esp32_wifi_dhcpv4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This application starts a use esp32 wifi as station.

  • first connect to wifi ap(Kconfig use CONFIG_EXAMPLE_WIFI_SSID and CONFIG_EXAMPLE_WIFI_PASSWORD)
  • auto start DHCPv4
  • then get ntp time
  • finally print Hello world

Requirements

  • esp32_devkitc_wroom board

Building and Running

Running DHCPv4 client in Linux Host

*** Booting Zephyr OS build zephyr-v3.5.0-2091-g0e11bcf5a0e7 ***
[00:00:02.302,000] <inf> wifi_net: hello world, esp32_devkitc_wroom
[00:00:07.302,000] <inf> wifi: Connecting to SSID: 707
[00:00:09.597,000] <inf> net_dhcpv4: Received: 192.168.3.49
[00:00:09.597,000] <inf> wifi: Wifi Connected
[00:00:09.597,000] <inf> wifi_net: Sending NTP request for current time:
[00:00:09.944,000] <inf> wifi_net:   Acquired time: 2023-11-24T16:24:39
[00:00:09.944,000] <inf> wifi_net:   sec: 1700843079
[00:00:19.944,000] <inf> wifi_net: Hello world
[00:00:29.944,000] <inf> wifi_net: Hello world

About

run zephyr wifi_mgnt and dhcpv4 on esp32_devkitc_wroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published