ESP32

ESP32, Wi-Fi, http2_request

CoyoteUgly 2018. 8. 21. 11:37

ESP32, Wi-Fi, http2_request



https://http2.golang.org 홈페이지에 접속하여

현재 시간을 가져오는 example입니다.



0. 참고 사이트


1. 모듈


2. 보드 연결


3. 소스 설명

make menuconfig를 통해 ssid, password를 지정해야 합니다.



4. 소스

https://github.com/sglee0223/esp32/tree/master/http2_request


5. 결과 확인

현재 시간은 UTC 기준으로 출력됩니다.


I (424) heap_init: Initializing. RAM available for dynamic allocation:
I (430) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (436) heap_init: At 3FFBA738 len 000258C8 (150 KiB): DRAM
I (443) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (449) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (456) heap_init: At 40090450 len 0000FBB0 (62 KiB): IRAM
I (462) cpu_start: Pro cpu start user code
I (144) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (229) wifi: wifi driver task: 3ffc1eb4, prio:23, stack:3584, core=0
I (229) wifi: wifi firmware version: 633012a
I (229) wifi: config NVS flash: enabled
I (229) wifi: config nano formating: disabled
I (239) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (249) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (279) wifi: Init dynamic tx buffer num: 32
I (279) wifi: Init data frame dynamic rx buffer num: 32
I (279) wifi: Init management frame dynamic rx buffer num: 32
I (279) wifi: Init static rx buffer size: 1600
I (289) wifi: Init static rx buffer num: 10
I (289) wifi: Init dynamic rx buffer num: 32
I (289) http2-req: Setting WiFi configuration SSID iptime...
I (359) phy: phy_version: 3960, 5211945, Jul 18 2018, 10:40:07, 0, 0
I (359) wifi: mode : sta (30:ae:a4:15:20:9c)
I (359) http2-req: SYSTEM_EVENT_STA_START
I (489) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (1469) wifi: state: init -> auth (b0)
I (1469) wifi: state: auth -> assoc (0)
I (1469) wifi: state: assoc -> run (10)
I (1809) wifi: connected with iptime, channel 1
I (1819) wifi: pm start, type: 1

I (2729) event: sta ip: 192.168.0.9, mask: 255.255.255.0, gw: 192.168.0.1
I (2729) http2-req: SYSTEM_EVENT_STA_GOT_IP
I (2729) http2-req: got ip:192.168.0.9

Connecting to server
Connection done
[data-prvd] Sending 11 bytes
[echo-response] HELLO WORLD
[echo-response] Frame fully received
[echo-response] Frame fully received
[echo-response] Stream Closed
[get-response] # ~1KB of junk to force browsers to start rendering immediately:
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2018-08-21 02:08:39.574448452 +0000 UTC m=+969550.037169140

[get-response] Frame fully received
[get-response] 2018-08-21 02:08:40.57461164 +0000 UTC m=+969551.037332343

[get-response] Frame fully received
[get-response] 2018-08-21 02:08:41.574609649 +0000 UTC m=+969552.037330357 



'ESP32' 카테고리의 다른 글

ESP32, Wi-Fi, smart_config  (0) 2018.08.21
ESP32, Bluetooth, Wi-Fi, blufi  (0) 2018.08.21
ESP32, UART, uart channel (0~2)  (0) 2018.08.20
EPS32, monitor option  (0) 2018.08.20
ESP32, make option  (0) 2018.08.20