Documentation
¶
Overview ¶
* this app implements a SAMav2 cluster through MQTT topics
The messages are APDU Commands ([]byte) sent to "<topicName*Inputs>", and APDU Responses ([]byte) that are left in "<topicNameOutput>"
* <topicNameAsyncInputs> is the prefix of topic to generic command (sent to any SAM device). * <topicNameSyncInputs> is the prefix of topic to especific command (sent to especific SAM device). * <topicNameOutput> is the prefix of topic to responses.
The "<topicNameAsyncInputs/*>" should end with suffix "/id1/id2". Where "id1" (hexstring) is a identifier for transaction, and "id2" (hexstring) is the identifier for app client who sent the command and will be receiver of the response.
The "<topicNameSyncInputs/*> should end with suffix "/id3/id1/id2". Where "id3" (hexstring) is the identifier for the SAM device that should reciver the APDU command, and "id2" (hexstring) is the identifier for app client who sent the command and will be receiver of the response and "id1" (hexstring) is the identifier of the transaction.
The "<topicNameOutput/*>" end with suffix "/id2/id1/id3". Where "id3" (hexstring) is the identifier for the SAM device that left the response, "id2" (hexstring) is the identifier for app client who will be receiver of the response and "id1" (hexstring) is the identifier of the transaction.
Usage of ./samfarmbin:
-clientName string Client Name conecction mqtt (default "go-samfarm-client-1541166125194006904") -isShared is shared subcription? -key string key aes128 (default "00000000000000000000000000000000") -password string MQTT Password broker -topicNameAsyncInputs string MQTT topic name to cmd requests Async (default "SAMFARM/ASYN/") -topicNameOutputs string MQTT topic name to cmd responses (default "SAMFARM/RESP/") -topicNameSyncInputs string MQTT topic name to cmd request Sync (default "SAMFARM/SYN/") -urlBroker string MQTT url broker (default "tcp://127.0.0.1:1883") -username string MQTT Username broker
/*