@danielgindi/bcp-charger-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
10
index.js
@@ -588,3 +588,3 @@ import iconv from 'iconv-lite'; | ||
let model = { | ||
mode: parseInt(result.data.substring(0, 4), 16), | ||
mode: /**@type ChargerMode*/parseInt(result.data.substring(0, 4), 16), | ||
version: this.#util.decodeString(result.data.substring(4, 44)), | ||
@@ -598,2 +598,10 @@ firmwareVersion: parseInt(result.data.substring(44, 46), 16).toString() + '.' + | ||
/** | ||
* Charger model info has been retrieved. | ||
* | ||
* @event charger_model | ||
* @type {ChargerModel} | ||
*/ | ||
this.emit('charger_model', model); | ||
return model; | ||
@@ -600,0 +608,0 @@ } |
{ | ||
"name": "@danielgindi/bcp-charger-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A node.js api for controlling the BCP EV chargers (Z-Box compatible chargers)", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -83,2 +83,3 @@ # @danielgindi/bcp-charger-api | ||
* `'ip' (event: { ip: string, port: number })` | ||
* `'charger_model' (model: ChargeModel)` | ||
* `'fault_status' (status: ChargeFaultStatus)` | ||
@@ -85,0 +86,0 @@ * `'realtime_data' (data: ChargerRealTimeData)` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47402
1010
123