Previous page Next page


You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Unlike other ACFA Intellect integration modules, it is not possible to control the ApolloSDK v.3 reader using macros. To control the reader in automatic mode, it is necessary to use scripts (for details, see Programming Guide (JScript)).

Below is an example of a script that, upon receiving an ACCESS_REQUEST event from an AUTO access point with id 2.1, sends a command for access granting to the Apollo AIM reader with id 1.1.1.1.1.1:

if (Event.SourceType == "VIRTUAL_AUTO_AP" && Event.Action == "ACCESS_REQUEST" && Event.SourceId == "2.1") {
	var id = Event.GetParam("param1");
	NotifyEventStr(Event.SourceType, Event.SourceId, "OP_GRANTED", "person_id<"+id+">");
	DoReactStr("APL2_AIM_READER","1.1.1.1.1.1","EMULATE_ACCESS","person_id<"+id+">");
}
  • No labels