Skip to main content
Version: v4 (Stable)

SetAudioFile

SetAudioFile(AlarmId AS String/Integer, AudioFile AS String[, State AS Integer]) As Integer

Defines in <AudioFile> the name of the sound file associated with the alarm tag identified by <AlarmId>. <AlarmId> can be the numeric object Id of the tag or its alphanumeric identifier depending on the type of the parameter (Integer or String).

The optional parameter <State> indicates the state to be configured: 0 for alarm (default), 1 for acknowledgment, 2 for reset.

Returns 0 if no error, 6 for an invalid alarm ID.