chmorgan / esphttpd-freertos

freertos example of libesphttpd for esp32 and esp8266
53 stars 14 forks source link

Example not working #6

Closed Elektrik1 closed 5 years ago

Elektrik1 commented 5 years ago

Hello, using latest esp-idf and latest libesphttpd this example does nothing, monitor says everything is ok, but trying to connect via browser or telnet, 80 port is timing out. Monitor:

I (0) cpu_start: App cpu up. I (374) heap_init: Initializing. RAM available for dynamic allocation: I (381) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (387) heap_init: At 3FFD2C18 len 0000D3E8 (52 KiB): DRAM I (393) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (399) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (406) heap_init: At 400903D8 len 0000FC28 (63 KiB): IRAM I (412) cpu_start: Pro cpu start user code I (95) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (97) httpd-freertos: address 0.0.0.0, port 80, maxConnections 32, mode non-ssl

I (97) httpd-freertos: init I (127) wifi: wifi driver task: 3ffda44c, prio:23, stack:3584, core=0 I (137) wifi: wifi firmware version: 4c398ce I (137) wifi: config NVS flash: enabled I (137) wifi: config nano formating: disabled I (137) system_api: Base MAC address is not set, read default base MAC address f rom BLK0 of EFUSE I (147) system_api: Base MAC address is not set, read default base MAC address f rom BLK0 of EFUSE I (187) wifi: Init dynamic tx buffer num: 32 I (187) wifi: Init data frame dynamic rx buffer num: 32 I (187) wifi: Init management frame dynamic rx buffer num: 32 I (187) wifi: Init static rx buffer size: 1600 I (197) wifi: Init static rx buffer num: 10 I (197) wifi: Init dynamic rx buffer num: 32 E (207) wifi: esp_wifi_disconnect 943 wifi not start I (267) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0 I (267) wifi: mode : softAP (24:0a:c4:81:5f:75)

Ready I (277) user_main: ~~~ I (277) user_main: IP:192.168.4.1 I (277) user_main: MASK:255.255.255.0 I (277) user_main: GW:192.168.4.1 I (287) user_main: ~~~ I (21377) wifi: n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1 I (21377) wifi: station: c0:4a:00:12:6f:8f join, AID=1, bgn, 40U I (21377) user_main: station:c0:4a:00:12:6f:8f join,AID=1

I (21467) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2

chmorgan commented 5 years ago

The api for libesphttpd was recently changed. You’ll have to start the server up now. I can update the example in the next few days unless you’d like to send a PR. Look in httpd-freertos.h towards the bottom.

On Wed, Jul 25, 2018 at 5:45 PM Julius notifications@github.com wrote:

Hello, using latest esp-idf and latest libesphttpd this example does nothing, monitor says everything is ok, but trying to connect via browser or telnet, 80 port is timing out. Monitor:

I (0) cpu_start: App cpu up. I (374) heap_init: Initializing. RAM available for dynamic allocation: I (381) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM I (387) heap_init: At 3FFD2C18 len 0000D3E8 (52 KiB): DRAM I (393) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (399) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (406) heap_init: At 400903D8 len 0000FC28 (63 KiB): IRAM I (412) cpu_start: Pro cpu start user code I (95) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (97) httpd-freertos: address 0.0.0.0, port 80, maxConnections 32, mode non-ssl

I (97) httpd-freertos: init I (127) wifi: wifi driver task: 3ffda44c, prio:23, stack:3584, core=0 I (137) wifi: wifi firmware version: 4c398ce I (137) wifi: config NVS flash: enabled I (137) wifi: config nano formating: disabled I (137) system_api: Base MAC address is not set, read default base MAC address f rom BLK0 of EFUSE I (147) system_api: Base MAC address is not set, read default base MAC address f rom BLK0 of EFUSE I (187) wifi: Init dynamic tx buffer num: 32 I (187) wifi: Init data frame dynamic rx buffer num: 32 I (187) wifi: Init management frame dynamic rx buffer num: 32 I (187) wifi: Init static rx buffer size: 1600 I (197) wifi: Init static rx buffer num: 10 I (197) wifi: Init dynamic rx buffer num: 32 E (207) wifi: esp_wifi_disconnect 943 wifi not start I (267) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0 I (267) wifi: mode : softAP (24:0a:c4:81:5f:75)

Ready I (277) user_main: ~~~ I (277) user_main: IP:192.168.4.1 I (277) user_main: MASK:255.255.255.0 I (277) user_main: GW:192.168.4.1 I (287) user_main: ~~~ I (21377) wifi: n:1 1, o:1 0, ap:1 1, sta:255 255, prof:1 I (21377) wifi: station: c0:4a:00:12:6f:8f join, AID=1, bgn, 40U I (21377) user_main: station:c0:4a:00:12:6f:8f join,AID=1

I (21467) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chmorgan/esphttpd-freertos/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ABJ-AB2u2jMDmnpcfNVJjSHNEO9AqDmcks5uKOcUgaJpZM4Vg2ee .

chmorgan commented 5 years ago

@Elektrik1 can you try out the fix_startup branch? https://github.com/chmorgan/esphttpd-freertos/tree/fix_startup

Elektrik1 commented 5 years ago

Thanks, works fine with: httpdFreertosStart(&httpdFreertosInstance);

chmorgan commented 5 years ago

@Elektrik1 merged fixes into master, thanks for the report!