Skip to main content
1-Visitor
September 21, 2016
Question

How can we make our service execute automatically at regular intervals.

  • September 21, 2016
  • 2 replies
  • 4665 views

i want my service should automatically execute after every one second.

2 replies

5-Regular Member
September 21, 2016

Hi Priyanshi Saxena​,

You can use Timer event for that. But as per my understanding 1 sec would be too early. Can you explain your use case.

You can subscribe to the timer event and call your service in the subscription code.

Hope it helps.

Thanks,

Ankit Gupta

psaxena1-VisitorAuthor
1-Visitor
September 21, 2016

How to change the time interval of timer?

1-Visitor
September 21, 2016

For different time intervals you need to create different timer things with different configurations and then Add subscription in Things, Thing Templates or Thing Shapes wherever you want. In subscription info tab select Timer thing(Timer thing configured with desired time interval) as source and event as Timer

Thanks!

1-Visitor
September 21, 2016

You have to go the the Timer thing you created on the composer and go the the Configuration options on Left panel.

psaxena1-VisitorAuthor
1-Visitor
September 21, 2016

Hi Carles

This is for Timer thing but I was talking about the TimerEvent which is already created

1-Visitor
September 21, 2016

TimerEvent it's triggered on TImer thing frequency, if you want to have different frequencies you need different Things.