hooktxu
07-07-2009, 03:27 PM
Hi, I have a wifi secure socket and I have to put a WPA password to connect to ir correctly. I use this code but it give me an error.
serialIWi.str(string("AT+iWLSI=red))
serialIWi.tx($0D)
i:= 0
repeat
iWLSIResponse:=serialIWi.rx
i++
while NOT(iWLSIResponse==$0A)
serialPC.str(@iWLSIResponse[0])
serialPC.str(string("MoreLab2 OK"))
''-------------------
serialIWi.str(string("AT+iWSTO=3"))
serialIWi.tx($0D)
i:= 0
repeat
iWST0Response:=serialIWi.rx
i++
while NOT(iWST0Response[i-1]==$0A)
serialPC.str(@iWST0Response[0])
serialPC.str(string("WEP OK"))
''-------------------
serialIWi.str(string("AT+iWLPP=modjjjdu"))
serialIWi.tx($0D)
i:= 0
repeat
iWLPPResponse[i]:=serialIWi.rx
i++
while NOT(iWLPPResponse[i-1]==$0A)
serialPC.str(@iWLPPResponse[0])
serialPC.str(string("Clave OK"))
serialIWi.str(string("AT+iWLSI=red))
serialIWi.tx($0D)
i:= 0
repeat
iWLSIResponse:=serialIWi.rx
i++
while NOT(iWLSIResponse==$0A)
serialPC.str(@iWLSIResponse[0])
serialPC.str(string("MoreLab2 OK"))
''-------------------
serialIWi.str(string("AT+iWSTO=3"))
serialIWi.tx($0D)
i:= 0
repeat
iWST0Response:=serialIWi.rx
i++
while NOT(iWST0Response[i-1]==$0A)
serialPC.str(@iWST0Response[0])
serialPC.str(string("WEP OK"))
''-------------------
serialIWi.str(string("AT+iWLPP=modjjjdu"))
serialIWi.tx($0D)
i:= 0
repeat
iWLPPResponse[i]:=serialIWi.rx
i++
while NOT(iWLPPResponse[i-1]==$0A)
serialPC.str(@iWLPPResponse[0])
serialPC.str(string("Clave OK"))