uint32_t EI_API_ADP_setTimeSyncRevisionData | ( | T * | pAdp_p, |
const char * | pRevisionData_p | ||
) |
Set the RevisionData attribute of the Time Sync object of the adapter(Instance Attribute ID: 22).
RevisionData specifies the revision data of the device that contains the clock. The format is:
For example: 1.2;2.3;3.0.1 The format is UTF-8 Unicode. The maximum number of symbols is 32. Subfields that don't apply may be null or blank (e.g. 1.2;2.3; or ;;3.4).
pRevisionData_p
exceeds 32 characters An error EI_API_ADP_eERR_LENGTH is returned. The format must be like the format described in. Otherwise it is returned EI_API_ADP_eERR_TIMESYNC_WRONG_FORMAT.
[in] | pAdp_p | Pointer to the adapter. |
[in] | pRevisionData_p | New product name as NULL (\0) terminated cstring. |
EI_API_ADP_eERR_OK | Success. |
EI_API_ADP_eERR_GENERAL | General error. |
EI_API_ADP_eERR_LENGTH | Illegal parameter length. |
EI_API_ADP_eERR_TIMESYNC_WRONG_FORMAT | Unaccepted format. E.g. format "1.2;2.3;" |