Hello everyone,
A connector must be modified to be Swarming-compatible. However, an error occurred during the process:
QAction '1': (465,35): warning CS0618: 'NotifyType.MakeAlarm' is obsolete: 'Use NT_GENERATE_ALARM instead'
Basically, an obsolete method that creates an alarm needs to be changed to a new one. The problem is that I haven't been able to find the NT_GENERATE_ALARM type, the package that contains it, an example of how to implement it, or any related documentation.
Could anyone with experience in this area help me?
This driver appears to be interfacing directly with SLDataMiner to create an alarm event.
Most likely this will be called as protocol.NotifyDataMiner or as SetDataMinerInfoMessage over SLNet
Before:
Type: (int) NotifyType.MakeAlarm
First input: Version number (probably "1")
Second input: string[] with data to create the alarm
Output: int raw alarm id
After:
Type: (int) NotifyType.NT_GENERATE_ALARM
First input: string[] with data to create the alarm
Second input: can be left empty (optional true/false to trigger async/sync behavior)
Output: serialized AlarmID (AlarmID.FromInterop van be used to parse to AlarmID from which the TreeID and eventID can be retrieved)
Be aware that the input arguments changed position. The string[] data format remains the same.
Also be aware that the output value has a different format, should you use this.
An alternative can be to use the GenerateAlarmMessage if you want to avoid raw calls to SLDataMiner.
Hope this helps