Open Loic31380 opened 11 months ago
Dear Loic,
try this code :
import 'package:dartnissanconnect/dartnissanconnect.dart';
main() { NissanConnectSession session = new NissanConnectSession(debug: true);
session.login(username: "****", password: "**").then((battery) { battery.requestBatteryStatus(); }); }
Hello,
For several weeks I have been trying to retrieve the battery data from my Nissan LEAF. The code provided as an example to retrieve the VIN works very well. However, I'm having a lot of trouble understanding the architect in order to obtain information about the battery, i.e. the charge level. Can you help me or show me the syntax I need to retrieve the battery info? Do I have to go through "nissanconnect_vehicle.dart" to get the information from "nissanconnect_battery.dart"?
Thank you for your help.