Search found 5 matches

by louiey
Wed Sep 16, 2020 12:39 am
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 510

Re: ESP32 SoftAp static ip config

Hi.

I just fix the issue and attached is my working code for someone who has same question.
by louiey
Tue Sep 15, 2020 11:53 pm
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 510

Re: ESP32 SoftAp static ip config

According to the source code you posted, you never configure the AP to a fixed IP at all. You just set the source IP for your socket to that IP, then 'magically' assume the entire AP will also use that IP. Can you give more in details how to config fixed ip with esp-idf? I could see API at arduino ...
by louiey
Tue Sep 15, 2020 11:51 pm
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 510

Re: ESP32 SoftAp static ip config

Also MY_IP_ADDR is a string representation of an IP so htonl is not doing what you expect: #define MY_IP_ADDR "192.168.4.56" dest_addr.sin_addr.s_addr = htonl(MY_IP_ADDR); You can use inet_addr or inet_aton to convert that to an IP, or use IP4_ADDR/esp_netif_ip4_makeu32 macros. Thanks for correctio...
by louiey
Mon Sep 14, 2020 1:27 am
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 510

Re: ESP32 SoftAp static ip config

1. I can connect on esp32_ap wifi from my PC - I can see log messages which prints my IP from terminal 2. esp32 waiting for accept 3. I set esp32 IP address to 192.168.4.56 4. Connect to esp32 with "192.168.4.56" port 22 from PC - cannot connect to esp32 from PC - if I try ping, there is no response...
by louiey
Sat Sep 12, 2020 5:23 am
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 510

ESP32 SoftAp static ip config

Hello. I'm trying esp32 softAP example code for my reference. 1. Run softAP 2. I could connect from my PC via WiFi 3. I could see leg message from terminal and I could confirm I connected at softAP 4. starts tcp_server_task and waiting to listen from socket 4. I want to send "Hello" message from PC ...

Go to advanced search