Hello,
i'm working with the DA16200MOD and the SDK.
Is it possible to build a captive portal page with the SoftAP running on the DA16200MOD? On an ESP32 it is for example possible with a little DNS server.
Hi There,Thank you for posting your question online.Please use the latest FreeRTOS SDK v3.2.9.1.Please also refer here: Captive portal page - Wi-Fi - Renesas Wireless Connectivity - Renesas Engineering CommunityYes the DA16200 can support a captive portal page with SoftAP running.Best regards,OV_Renesas
i'm using the latest FreeRTOS SDK v3.2.9.2.
Like on the other topic my SoftAP with HTTP server is running. And i tried to modify the httpd_init_pcb() function in httpd.c to bind the HTTP server to a specific IP.
httpd_init_pcb(struct altcp_pcb *pcb, u16_t port) { err_t err; if (pcb) { altcp_setprio(pcb, HTTPD_TCP_PRIO); /* set SOF_REUSEADDR here to explicitly bind httpd to multiple interfaces */ ip_addr_t my_ip; IP4_ADDR(&my_ip, 192,168,4,1); err = altcp_bind(pcb, &my_ip, port); // err = altcp_bind(pcb, IP_ANY_TYPE, port); LWIP_UNUSED_ARG(err); /* in case of LWIP_NOASSERT */ LWIP_ASSERT("httpd_init: tcp_bind failed", (err == ERR_OK) || (err == ERR_USE)); pcb = altcp_listen(pcb); LWIP_ASSERT("httpd_init: tcp_listen failed", pcb != NULL); altcp_accept(pcb, http_accept); } }
But if i connect to the SoftAP and open up my browser i need to enter the IP in the address line, the website won't pop up automatically. As a captive portal page this page should be automatically open after i open my browser.
Hi MS,Thank you for the reply.Let me check if it is possible to pop up the website automatically with the DA16200 and I will get back to you as soon as possible.Best Regards,OV_Renesas
Hi MS,Apologies for the delay.Currently we can support DA16200 configured as SoftAP and running the HTTP Server.The Captive Portal as you described it is not yet supported by the DA16200.We do not have any plans yet on which FreeRTOS SDK release will start supporting the Captive Portal.Best Regards,OV_Renesas