Skip to content

Commit

Permalink
Updated address example
Browse files Browse the repository at this point in the history
  • Loading branch information
stevieb9 committed Mar 13, 2023
1 parent 7e95550 commit 7a8d5f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Revision history for Tesla-Vehicle
- Bump prereq of Tesla::API to 1.02 for changes that isolate the API
cache to object instances of that library
- Add constants for geocoding API request attributes
- Bump prereq of Tesla::API to 1.03

0.08 2022-07-18
- Return 0 if charge_actual_current() is undef
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ my %WriteMakefileArgs = (
},
PREREQ_PM => {
'JSON' => 0,
'Tesla::API' => '1.02',
'Tesla::API' => '1.03',
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Tesla-Vehicle-*' },
Expand Down
9 changes: 9 additions & 0 deletions examples/address.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
}

my $gear = $car->gear;
my $charging = $car->charging_state;

say "\n";
say "gear: $gear";
say "charging: $charging";

say "\n";

say $car->latitude;
say $car->longitude;

print "\n";

0 comments on commit 7a8d5f3

Please sign in to comment.