Interface ChargerStateCallback


  • public interface ChargerStateCallback
    Charge control module event callback interface
    Version:
    1.0
    Author:
    wmy
    • Method Detail

      • onUpdate

        void onUpdate​(ConnStatus connStatus,
                      ChargeState chargeStatus,
                      BatteryDetectState batteryDetectStatus,
                      DroneSwitchState droneSwitchstatus,
                      int voltage,
                      int current)
        Called back when the charging module status property is reported
        Parameters:
        connStatus - component connection status
        chargeStatus - charging status
        batteryDetectStatus - battery detection status
        droneSwitchstatus - Drone on/off status
        voltage - charging voltage *10V
        current - charging current *10A
      • onOperateResult

        void onOperateResult​(ServiceCode code,
                             ServiceResult result)
        Called back when feedback is received from the service
        Parameters:
        code - device service code
        result - Feedback result of service delivery