Rules - smaller size limit than advertised?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
pjakobs
New user
Posts: 3
Joined: 02 May 2016, 11:15

Rules - smaller size limit than advertised?

#1 Post by pjakobs » 12 Jul 2016, 11:39

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

Martinus

Re: Rules - smaller size limit than advertised?

#2 Post by Martinus » 13 Jul 2016, 17:58

Just copied/pasted into one of my modules:
rules.png
rules.png (51.73 KiB) Viewed 2431 times
Seems to work. Could it depend on how (what tool) you used to paste the rules into the textbox?

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

Re: Rules - smaller size limit than advertised?

#3 Post by tozett » 13 Jul 2016, 19:16

may change the first topic-header to "SOLVED" ?

regards.

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests