Interface ControlCenterStateCallback
-
public interface ControlCenterStateCallback
Central control module event callback interface- Version:
- 1.0.0
- Author:
- wmy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onGetConfig(ServiceResult result, ConfigParameter paramIndex, int value)
Called back when receiving feedback on a configuration parameter access requestvoid
onGetConfigVersionInfo(int version, int paramNum)
Called back when receiving feedback on a configuration parameter version information access requestvoid
onOperateResult(ServiceCode code, ServiceResult result)
Called back when feedback is received from the servicevoid
onSetConfig(ServiceResult result, ConfigParameter paramIndex, ConfigFailReason reason)
Called back when receiving feedback on configuration parameter settingsvoid
onThingsPost(ThingLevel level, int code)
Called back when events reported is receivedvoid
onUpdate()
Called back upon receipt of status report from the central control module
-
-
-
Method Detail
-
onUpdate
void onUpdate()
Called back upon receipt of status report from the central control module
-
onThingsPost
void onThingsPost(ThingLevel level, int code)
Called back when events reported is received- Parameters:
level
- Reported event levelcode
- Report Event Code
-
onOperateResult
void onOperateResult(ServiceCode code, ServiceResult result)
Called back when feedback is received from the service- Parameters:
code
- Device Service Coderesult
- Feedback result of service delivery
-
onGetConfigVersionInfo
void onGetConfigVersionInfo(int version, int paramNum)
Called back when receiving feedback on a configuration parameter version information access request- Parameters:
version
- Parameter configuration versionparamNum
- Number of configurable parameters
-
onGetConfig
void onGetConfig(ServiceResult result, ConfigParameter paramIndex, int value)
Called back when receiving feedback on a configuration parameter access request- Parameters:
result
- Feedback result of service deliveryparamIndex
- Parameter Sequence Numbervalue
- Parameter value
-
onSetConfig
void onSetConfig(ServiceResult result, ConfigParameter paramIndex, ConfigFailReason reason)
Called back when receiving feedback on configuration parameter settings- Parameters:
result
- Feedback result of service deliveryparamIndex
- Parameter Sequence Numberreason
- Reasons for failure to set configuration parameters
-
-