2016-12-14 12:50 AM
Hi Everyone !
I am using SPWF01S wifi module.
I would like to assign static IP for my module, so that my module will have same IP address even when connected with different networks.
I used the following AT Commands
at+s.scfg
= ip_use_dhcp,0at+s.scfg = ip_ipaddr,172.10.10.50
at+s.scfg = ip_netmask,255.255.255.240
at+s.scfg = ip_gw,172.10.10.1
at+s.scfg = ip_dns,172.10.10.1
when I use the above commands the module is allotted with static IP but SOCKET connection is not happening but when I use 'ip_use_dhcp,1' then everything works fine.
Help me to solve this issue.
Solved! Go to Solution.
2016-12-14 11:27 PM
Hello!
I think You try to use wrong tcp/ip settings.
If you have configured netmask as
255.255.255.240
you mayuse ip-adresses in range
172.10.10.1
- 16 only. But you try to use 172.10.10.50.It's not in range.
2016-12-14 11:49 AM
Hi,
please share your use case. Socket server or client? Which FW version (update to the latest one, if not)?
Regards
jerry
2016-12-14 11:27 PM
Hello!
I think You try to use wrong tcp/ip settings.
If you have configured netmask as
255.255.255.240
you mayuse ip-adresses in range
172.10.10.1
- 16 only. But you try to use 172.10.10.50.It's not in range.
2016-12-15 07:12 AM
Hi Jerry and Daniel,
Jerry : The FW version is 3.5 and I am using my module as socket client.
Daniel : You are right the IP address should be in the range of 1 to 16. I have used 172.10.10.8 and now it is working fine.
Thank you guys for the suggestion.