Skip to content

Commit 6e058ef

Browse files
authored
Merge pull request #7 from PedroKTFC/dev
Fix charging start/stop
2 parents 4e17cca + 106dcf6 commit 6e058ef

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

library.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"name": "TeslaBLE",
3-
"version": "2.2.1",
3+
"version": "2025.9.0",
44
"description": "This CPP library facilitates direct communication with Tesla vehicles via the BLE API. It offers fundamental features such as unlocking/locking, opening the trunk, and more. The library's capabilities are contingent on the range of actions implemented by Tesla, which is the only limitation at present.",
55
"keywords": "tesla, ble",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/pmdroid/tesla-ble.git"
8+
"url": "https://github.com/PedroKTFC/tesla-ble.git"
99
},
1010
"authors": [
11+
{
12+
"name": "PedroKTFC",
13+
"maintainer": true
14+
},
1115
{
1216
"name": "Yasir Ekinci",
1317
"email": "hi@yasirekinci.com",

src/client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,12 @@ namespace TeslaBLE
900900
if (set_value == 1)
901901
{
902902
vehicle_action_msg.which_charging_action = CarServer_ChargingStartStopAction_start_tag;
903-
vehicle_action_msg.charging_action.stop = CarServer_Void_init_default;
903+
vehicle_action_msg.charging_action.start = CarServer_Void_init_default;
904904
}
905905
else
906906
{
907907
vehicle_action_msg.which_charging_action = CarServer_ChargingStartStopAction_stop_tag;
908-
vehicle_action_msg.charging_action.start = CarServer_Void_init_default;
908+
vehicle_action_msg.charging_action.stop = CarServer_Void_init_default;
909909
}
910910
vehicle_action.vehicle_action_msg.chargingStartStopAction = vehicle_action_msg;
911911
}

0 commit comments

Comments
 (0)