Charger
1 2 3
# coding=utf-8 # This is a sample Python script. from power import Charger
open
打开并创建Charger实例
close
关闭Charger实例
getConnectState
获取DC连接状态
getState
获取当前充电状态
getCurrent
获取充电电流大小,单位:mA
switch
开始/停止充电
onConnect
连接充电