Skip to main content
Jul 14, 2017 4:46 AM UTC
Question

How custom event trigger any service?

Dear Team,

How custom event trigger any service?

    6 replies

    Jul 14, 2017 6:44 AM UTC

    You just need to subscribe to the corresponding event, and on the subscription code you can call any service.

    Apr 20, 2018 6:40 PM UTC

    hi

     

    i have the same problem, and the problem is with subscription code.

     

    I am new to TWorx and still trying to find my way in it.

     

    I have a timer which i created a subscription to it from my thing, my thing has a service which i want it to run when ever the timer fires, but still i can't figure out what code i have to add in my subscription to execute the service.

     

    can you help please

    Apr 20, 2018 7:04 PM UTC

    If you have a service implemented on the Thing, you just need to call it from the subscription:

     

    me.myServiceName();

     

    That's all.