cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Newbie

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

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

Tags (1)
9 REPLIES 9

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

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

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

How to change the time interval of timer?

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

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

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

Hi Carles

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

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

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

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

so in this case the Thing in which we are subscribing to the timer event should have template as timer?

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

No, you can subscribe from any other Thing To the Timer Thing, but there's only one TimerEvent, which will trigger all the subscriptions.

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

Thanks Carles.

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

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!