add analogRead command to JsonCommandController.
fix a bug for analog read.