Measurement of charging current of energy storage charging pile