Home AMX User Forum NetLinx Studio

How do I create an Array of Strings

I'd like to recall commands from an array. Something like this, for example:


nDevice_Cmnds[]=
{
"$02,$01,$11,$19$02,$03,$00,$00,",
"'ascii_command',$0D",
"$02,$01,$06,$15,$02,$01,$06,$15",
"'ascii_command#2',$0D",
}

What am i missing?

Comments

  • glr-ftiglr-fti Posts: 286
    This is an example of some thermostat commands.
    CHAR	 sThermostatCommands[][9]=
    {
    	 'SH++=1'
    	,'SH--=1'
    	,'SC++=1'
    	,'SC--=1'
    	,'MODE=HEAT'
    	,'MODE=COOL'
    	,'MODE=AUTO'
    	,'MODE=OFF'
    	,'FAN=ON'
    	,'FAN=AUTO'
    } 
    
  • Great Example!

    Thank you!
Sign In or Register to comment.