Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
ActionRequest ExampleImpl::calibrateAction (BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value_p, Completion &completion, CBDescOut &descOut) { completion = ACSErrTypeOK::ACSErrOKCompletion(); // do calibration... completion = //Actual status of calibration process return reqInvokeDone; } ActionRequest ExampleImpl::invokeAction (int function, BACIComponent *cob_p, const int &callbackID, const CBDescIn &descIn, BACIValue *value_p, Completion &completion, CBDescOut &descOut) { switch (function) { case CALIBRATE_ACTION: { return calibrateAction(cob_p, callbackID, descIn, value_p, completion, descOut); } default: { return reqDestroy; } } } void ExampleImpl::calibrate(ACS::CBvoid_ptr cb, const ACS::CBDescIn& desc) { getComponent()->registerAction(BACIValue::type_null, cb, desc, this, CALIBRATE_ACTION); } |
More information can be found in BACI Device Server Programming Tutorial.