Set Clock
Set Clock
This operation is used to set the local clock datastream (which is used to change the hour of the device) value to a value provided from the third system on the operation request itself. This value will be a long with a date in timestamp format.
Dependencies
- Commons: Required to provide the commons utils.
- Operation API: Provides the api of the operation and the enums of the result code.
- State Manager: Provides the API of the State Manager that will handle the returned value by the operation.
Configuration
To configure Set Clock Operation module, a file named es.amplia.oda.operation.setclock.cfg must be created with the next parameters:
- clockDatastream:Required parameter. Id of the datastream used to configure device clock.
Trace
The trace send by the third system (e.g. OpenGate) to the ODA to do this operation is like this:
‘{“operation”:{“request”:{“timestamp”:1554978284595,“deviceId”:“aDevice”,“name”:“SET_CLOCK_EQUIPMENT”,“parameters”:[],“id”:“4aabb9c6-61ec-43ed-b0e4-dabface44b64”}}}’