2015-12-27 02:57 AM
I have been following the
and I would like to connect to my SPWF01S via apache so that I can update and add the html pages. 1. I have opened a socket at the module - AT+S.SOCKD=32000 2. I have modified the httpd.conf file for my IP address and socket:♯ Change this to Listen on specific IP addresses as shown below to
♯ prevent Apache from glomming onto all bound IP addresses.
♯
Listen 192.168.1.93:32000
Listen 32000
3. When I try and ''start'' apache I get the following error:$ httpd.exe -k start
(OS 10049)The requested address is not valid in its context. : AH00072: make_sock: could not bind to address 192.168.1.93:32000
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs I am wondering what else I need to set up in SPWF01S or my Apache configs. The only reason I want to connect is so that I can modify upload new html files and images to the module for web it acts as a webserver. Many Thanks. Tom #apache #html #spwf01s-wifi
2015-12-27 07:25 AM
Hi Tom,
AT+S.SOCKD command must be used to open a socket server. If you need to update filesystem (html pages into external flash) and/or firmware, SPWF01S must act as a client. Use AT+S.HTTPDFSUPDATE and/or AT+S.FWUPDATE commands, and connect to remote Apache (move *.img/*.ota file into Apache proper directory). Once updated, reboot the module. It will be able to use new filesystem for webserver. Ciao jerry