AMX RMS Technical Information Seite 106

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 220
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 105
Programming - Asset Management
88
RMS Enterprise - NetLinx Programmer’s Guide
Asset Metadata Update Functions (Cont.)
RmsAssetMetadata
UpdateDecimal
Description: This function is used to update and existing asset metadata property value.
This function updates a metadata property of type: DECIMAL
Arguments:
CHAR assetClientKey[] - asset client key
CHAR metadataKey[] - metadata property key
DOUBLE metadataValue - metadata property value
Returns: 1 if call was successful; 0 if call was unsuccessful
Syntax:
DEFINE_FUNCTION CHAR RmsAssetMetadataUpdateDecimal(CHAR assetClientKey[],
CHAR metadataKey[],
DOUBLE metadataValue)
{
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 <RmsAssetMetadataUpdateDecimal> :: RMS is not ready to accept asset
metadata changes.';
RETURN FALSE;
}
// ensure an asset client key has been provided
IF(assetClientKey == '')
{
SEND_STRING 0, '>>>> RMS API ERROR <RmsAssetMetadataUpdateDecimal> :: missing asset client key';
RETURN FALSE;
}
// ensure a metadata key has been provided
IF(metadataKey == '')
{
SEND_STRING 0, '>>>> RMS API ERROR <RmsAssetMetadataUpdateDecimal> :: missing metadata key';
RETURN FALSE;
}
// submit the asset metadata update now
RETURN RmsAssetMetadataUpdateValue(assetClientKey,metadataKey,FTOA(metadataValue));
}
Seitenansicht 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 219 220

Kommentare zu diesen Handbüchern

Keine Kommentare