(solved)rules define own variable within rules

Moderators: Voyager, BertB, rtenklooster, Stuntteam, grovkillen, TD-er

Post Reply
Message
Author
riker1
Normal user
Posts: 261
Joined: 26 Dec 2017, 18:02

(solved)rules define own variable within rules

#1 Post by riker1 » 16 Mar 2019, 18:57

Hi

is it possible to define a variabe
- like : %ruleversion% = "version"

which can be used later in publish command?

I know the workaround to set a generic dummy device with event and eventvalue, but it would be easier to have a variable within rules to be used after flashing the rules .

thanks T
Last edited by riker1 on 16 Mar 2019, 19:18, edited 1 time in total.

User avatar
grovkillen
Normal user
Posts: 2829
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: rules define own variable within rules

#2 Post by grovkillen » 16 Mar 2019, 19:07

As of the last 2-3 months you can define up to 16 internal variables.

Code: Select all

Let,16,123
The rule above will set variable 16 to the value 123. You can use the variables in either using this syntax:

%v16%

Or

[VAR#16]

How you want to publish the version number is then up to you.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

riker1
Normal user
Posts: 261
Joined: 26 Dec 2017, 18:02

Re: rules define own variable within rules

#3 Post by riker1 » 16 Mar 2019, 19:18

ok, that is perfect.

thanks

riker1
Normal user
Posts: 261
Joined: 26 Dec 2017, 18:02

Re: (solved)rules define own variable within rules

#4 Post by riker1 » 16 Mar 2019, 19:20

also alphanumeric once?

Thanks

User avatar
grovkillen
Normal user
Posts: 2829
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: (solved)rules define own variable within rules

#5 Post by grovkillen » 16 Mar 2019, 20:43

riker1 wrote:
16 Mar 2019, 19:20
also alphanumeric once?

Thanks
No, only floats.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests