Need Help


Closed Thread
Results 1 to 5 of 5

Thread: Need Help

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    " 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

  2. #2
    Join Date
    May 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Cool Need help

    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

  3. #3
    Join Date
    May 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Cool help needed

    hserin [WAIT("+CMGR:"),SKIP 55, DEC MYDATA]
    correction to above

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    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

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts