" MYDATA VAR byte [2] " is an array.
You have "mydata" in your Select case statement.
Chose one element from mydata elements.
------------------------------------
" MYDATA VAR byte [2] " is an array.
You have "mydata" in your Select case statement.
Chose one element from mydata elements.
------------------------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
To make it an Array was the only way I could read the value of Mydata
If I make it a normal variable this command does not work
hserin [WAIT("+CMGR:"),SKIP 55,str MYDATA]
does not get last of SMS message fot instance if I say message is 22 to switch on relay 22
Have played around with skip value's from 49 to 56
Thanks
hserin [WAIT("+CMGR:"),SKIP 55, DEC MYDATA]
correction to above
Then you will have to figure out if it is mydata[0] or mydata[1] that stores the variable you want. Change your mydata= 0 and select case mydata to mydata[0]=0 or mydata[1]=0 and select case mydata[0] or select case mydata[1]
http://www.scalerobotics.com
Bookmarks