Add event trigger in Protocol

Nikolay 2 years ago

Hello,

I am trying to extend a protocol to generate events when a condition is met.

I see an event element in the Position attributes, but it is not recorded in the Database in the tc_events table. And it is not displayed in a component with a bell icon.

What is the correct way to generate an event in the protocol code, save it in the database and make it visible in the component. I guess the first will solve the second

Anton Tananaev2 years ago

You should use the alarm attribute instead.