AMX RMS Informations techniques Page 121

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 220
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 120
Programming - Asset Management
103
RMS Enterprise - NetLinx Programmer’s Guide
Asset Control Methods Registration Functions (Cont.)
RmsAssetControlMethods
Submit
Description:
This function is used to submit any pending asset control methods that are currently in queue waiting to be registered with
RMS.
Arguments:
CHAR assetClientKey[] - asset client key
Returns: 1 if call was successful; 0 if call was unsuccessful
Syntax:
DEFINE_FUNCTION CHAR RmsAssetControlMethodsSubmit(CHAR assetClientKey[])
{
STACK_VAR CHAR rmsCommand[RMS_MAX_CMD_LEN];
// ensure RMS is ONLINE, REGISTERED, and ready for ASSET registration
IF(![vdvRMS,RMS_CHANNEL_ASSETS_REGISTER])
{
SEND_STRING 0, '>>>> RMS API ERROR <RmsAssetControlMethodsSubmit> :: RMS is not ready to accept
asset control method changes.';
RETURN FALSE;
}
// ensure an asset client key has been provided
IF(assetClientKey == '')
{
SEND_STRING 0, '>>>> RMS API ERROR <RmsAssetControlMethodsSubmit> :: missing asset client key';
RETURN FALSE;
}
// submit the pended queued asset registrations now
rmsCommand = RmsPackCmdHeader('ASSET.METHOD.SUBMIT');
rmsCommand = RmsPackCmdParam(rmsCommand,assetClientKey);
SEND_COMMAND vdvRMS, rmsCommand;
RETURN TRUE;
}
Vue de la page 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 219 220

Commentaires sur ces manuels

Pas de commentaire