Access Keys:
Skip to content (Access Key - 0)
 

Parsing variables in sensor command (telnet)

Ernst Cozijnsen

On Jan 30, 2011 15:12

I'm trying to parse a string to get a sensor status  but so far only errors in the controller.log

the command that need to be executed is:  { $value

Unknown macro: {Stalamp_KL}

How do i parse this string so that the controller will not try to substitute it.

 
Labels: , , ,
Participants: Ernst Cozijnsen , Richard Turner , pierce maher
  1. Jan 30, 2011

    Ernst Cozijnsen says:

    Well something screwed the command so it should be like this: { $value{Stalam...

    Well something screwed the command so it should be like this:

      { $value{Stalamp_KL} }
    
    1. Nov 08, 2011

      pierce maher says:

      Ernest can you help me with a Regex problem Can you tell me what am I not doo...

      Ernest can you help me with a Regex problem

      Can you tell me what am I not dooing correctly.

      Many thanks

      Pierce

      1. Jan 10

        Richard Turner says:

        Try: ^(i).*get(.)$ Make use of http://www.regular-expressions.info/refer...

        Try:

        ^(i).*get(.)$
        

        Make use of http://www.regular-expressions.info/reference.html and http://www.regexplanet.com/simple/index.html to get the correct regex.

        Rich

Adaptavist Theme Builder Powered by Atlassian Confluence
Free theme builder license