Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By forlotto
#33982 use his example it works
User avatar
By forlotto
#33988 There is a problem with using the variables you specify ....

I see why this is not working there is something buggy with the way it runs using your example dunno why ...

But this does work !

try this and tell me if it works for you...

Code: Select allread "WIFIname" bla
print bla
read "WIFIpass" bla1
print bla1
read "APname" bla2
print bla2
read "APpass" bla3
print bla3
end


Or if you need the code to be more understandable...

You can try this instead...

Code: Select allread "WIFIname" blaWIFIssid
print blaWIFIssid
read "WIFIpass" blaWIFIpass
print blaWIFIpass
read "APname" blaAPssid
print blaAPssid
read "APpass" blaAPpass
print blaAPpass
end


In case variables may be in use add bla to the beginning of the variable more or less...
Odd but seems to do the job will take up a bit more space but I think I will use this for my variable names to prevent these things from happening in my own code as a method and solution to possible errors.

You could likely just use vAPP for aceess point pass or vWFP for WIFIpass to shorten things up

or in your case vssid vpass vssid1 vpass1

I haven't tested but play with it by all means but for sure it likes bla at the beginning for every variable...
User avatar
By kingedem
#34020 Do I need to 'write' the values first and then 'read' it?

I was trying to retrieve the values which you have already stored it from Setting page.
User avatar
By Mmiscool
#34023 If they are showing up on the settings page after a save you should be able to read them in.