Page 1 of 1

Rules - smaller size limit than advertised?

Posted: 12 Jul 2016, 11:39
by pjakobs
The edit box for rules in ESPEasy 108 says it could take up to 2048 characters however, when I am trying to upload the following rule set, it's cut off at around 690 characters:

Code: Select all

on ausfahren10 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,0,0 // start extending
  timerSet 1,4 // 4 seconds is just under 10%
endon

on einfahren10 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,2,0 // start extending
  timerSet 1,4 // 4 seconds is just under 10%
endon

on ausfahren25 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,0,0 // start extending
  timerSet 1,11 // 11 seconds is just under 25%
endon

on einfahren25 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,2,0 // start extending
  timerSet 1,11 // 11 seconds is just under 25%
endon

on ausfahren50 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,0,0 // start extending
  timerSet 1,22 // 22 seconds is just under 50%
endon

on einfahren50 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,2,0 // start extending
  timerSet 1,22 // 22 seconds is just under 50%
endon


on ausfahren100 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,0,0 // start extending
  timerSet 1,45 // 45 seconds is 100%
endon

on einfahren100 do
  gpio,0,1 // stop all engines
  gpio,2,1 // stop all engines
  gpio,2,0 // start extending
  timerSet 1,45 // 45 seconds is 100%
endon

on Rules#Timer=1 do
   gpio,0,1 // stop all engines
   gpio,2,1 // stop all engines
endon

on stop do
   gpio,0,1 // stop all engines
   gpio,2,1 // stop all engines
endon
I would assume this is a double byte issue since I'm running on a unicode system? However, double byte wouldn't blow up ~800 chars to 2048 chars, so I'm slightly puzzled.

Help is appreciated.

pj

Re: Rules - smaller size limit than advertised?

Posted: 13 Jul 2016, 17:58
by Martinus
Just copied/pasted into one of my modules:
rules.png
rules.png (51.73 KiB) Viewed 2628 times
Seems to work. Could it depend on how (what tool) you used to paste the rules into the textbox?

Re: Rules - smaller size limit than advertised?

Posted: 13 Jul 2016, 19:16
by tozett
may change the first topic-header to "SOLVED" ?

regards.