Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 new problems #58

Open
msillano opened this issue May 23, 2020 · 0 comments
Open

2 new problems #58

msillano opened this issue May 23, 2020 · 0 comments

Comments

@msillano
Copy link

msillano commented May 23, 2020

Hi Martin

a) Working a new timer project I had a problem: after a change (I don't know which one :( ) all the timers and interrupts, which previously worked perfectly, all stopped working at the same time. My code is very long (3950) and I make strong efforts to keep it in the required size. But the problem is not the total size. (I can send you the full code not working if that can help).

b) So I start to make some tests: maybe the cause is the size of code after "on timer.."? Cutting it looks working (not sure). Making tests to cut it, I fond a second problem, easily replicable, see the next code (the idea is to use "publish local .." as a function call)

on init
do
subscribe local /#
settimer 2 3000

on topic local /tb
do
%next line as no effect
println "in local timer 2"
%This line works, timer 2 restarts
settimer 2 3000

on timer 2
do
println "on timer 2 "
publish local /tb b

The message "in local timer 2" do not appear on the terminal (Putty, telnet) but the next line works, because the timer restarts: "on timer 2 " appears every 3 seconds.

Tested using:

  • Version V2.0.6 (build: Wed Jul 18 20:03:01 2018) and
  • Version V2.0.10 (build: Sun Jan 27 17:30:33 2019): both same.

Any idea?
Best regards
m.s.
p.s. ADDED
Using serial debug I get (correct):

local timer 2
on timer 2
local timer 2

Using telnet debug I get (bad)

on timer 2
on timer 2
on timer 2

best regards

p.p.s. about (a) problem:
After many tests days, I found that the following line creates problems at runtime:

publish local $cmd on
% must be replaced with
publish local $cmd go
publish local $cmd "on"

best rergards
m.s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant