cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF01S Apache Connection

tom239955_st
Associate II
Posted on December 27, 2015 at 11:57

I have been following the

https://my.st.com//public/STe2ecommunities/interface/Lists/WiFi%20Modules/Attachments/186/wifi%20Training%20-%20Hands%20On%20-%20FW3.3.pdf

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
1 REPLY 1
Posted on December 27, 2015 at 16:25

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