Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By kingedem
#34024 Could you pls help me with code ? May be I am unable to understand the way to access your defined vars. In you earlier message you have mentioned 'file' name.
User avatar
By Mmiscool
#34026 I just ran the following code.

Code: Select allmemclear
read "WIFIname" ssid
read "WIFIpass" password
read "APname" ssid1
read "APpass" password1


print ssid
print password
print ssid1
print password1
wait


Can you post the exact code you are using?
User avatar
By kingedem
#34036 below is my code: ... after I added memclear, its printing only 4 lines with no values ...

memclear
let ssid = " "
let password = " "
let ssid1 = " "
let password1 = " "
print "Remote WIFI(SSID):"
textbox ssid
print "Remote WIFI PASSWORD:"
textbox password
button "Make AP" [create_ap]
print "<br>"
print "Router WIFI(SSID):"
textbox ssid1
print "Router WIFI PASSWORD:"
textbox password1
print "<br>"
button "Load Default Prog" [RunProg-1]
button "Connect-Router" [Connect-Router]
button "getName" [GetName]
wait
[RunProg-1]
load default
wait
[create_ap]
ap ssid password
[create_ap]
connect ssid1 password1
[GetName]
read "WIFIname" ssid
print ssid
read "WIFIpass" password
print password
read "APname" ssid1
print ssid1
read "APpass" password1
print password1
wait
end
User avatar
By kingedem
#34038 Ok. I got it. :)

I must not use the let variables in read command ...

I used following

memclear
let ssid = " "
let password = " "
let ssid1 = " "
let password1 = " "
print "Remote WIFI(SSID):"
textbox ssid
print "Remote WIFI PASSWORD:"
textbox password
button "Make AP" [create_ap]
print "<br>"
print "Router WIFI(SSID):"
textbox ssid1
print "Router WIFI PASSWORD:"
textbox password1
print "<br>"
button "Load Default Prog" [RunProg-1]
button "Connect-Router" [Connect-Router]
button "getName" [GetName]
wait
[RunProg-1]
load default
wait
[create_ap]
ap ssid password
[create_ap]
connect ssid1 password1
[GetName]
read "WIFIname" ssid2
print ssid2
read "WIFIpass" password2
print password2
read "APname" ssid12
print ssid12
read "APpass" password12
print password12
wait
end