Hi,
What is the proper way of disconnecting from a Network??
I set up my WIFI-module as a server and connect to a PC in Adhoc-mode.
I use these commands:
Connect to WiFi-network:
AT+WWPA=password
Disable DHCP:
AT+NDHCP=0
set module Ip-Address and Gateway IP:
AT+NSET=192.168.1.1,255.255.255.0,192.168.1.2
set Wifi-parameters for auto-connect:
AT+WAUTO=2,MYadhocNetwork,0
Connect:
ATA
Connection is made…<
Now in data-mode, i cannot send any more commands to the module.
Now if want to disconnect again…
Question1: is the proper way of disconnecting, to send “+++” ?? do i have to issue a AT+XDUM=0 command first everytime?
Question2:
If i connect my computer to the adhoc-network first, it says “waiting for user”. As soon as i connect the WIFI-module (with ATA), the connection is made and the computer says “connected”. Everything is fine!
But if i connect the module first and then the computer, no connection is made. The computer says “waiting for user…” and nothing more happens. Can i force a connection to be made?
i could use the AT+PING command to see when the computer is connected and then issue a ATA command, but that won’t work since i’m not connected to the computer before ATA-command
Question3:
Can i send AT+Ping commands while in data-mode? The module is inresponsive in data-mode, so i’m not sure how to send additional commands without first exiting data-mode (with +++), which disconnects the server-client connection.
Note: i’m using a dfRobot Wifi-shield v2.2.Tried getting help from dFrobot, without success (yet)