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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Notification system using timer event subcription

nkhose
1-Newbie

Notification system using timer event subcription

Hi all

I have a datatable where devices are stored , i'am building a notification system where when device goes online  it will send a notification email similarly for when device went offline . The issue is the email should be send after xx minutes i.e a delay say 15 min or more  for different devices have different delay. To do this i have subcribed to timer event and timer runs for every 1 min .

 

So i have acheived the delay as nowtime >=time device went online/offline + (15 minutes delay) . when email is beingsent i'am updating some flags that this device is notified or not for online/offline . Issue here is i get notified but sometimes i got multiple notications (rare case). Is this a feasible solution for this or i should go for db instead.My datatable list isn't that big so i prefered at TW Side .

  Any thoughts on this highly appreciated.

2 REPLIES 2

You should have some bug on your code, I have exactly the same configuration type and it works smoothly.

Thanks for the reply Carles

Top Tags