Skip to content

Commit 4c87e44

Browse files
authored
Merge pull request #25 from staabm/patch-1
README: fix variable case in example code
2 parents b969c73 + c1b18a7 commit 4c87e44

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ With reject an exception is thrown which contains the error object with result l
121121
You can get the key by having an email sent to you on the Grwatt website for a third party to display the data. The key is the combination of numbers and letters in the link. It has 96 characters.
122122

123123
```
124-
let login = await Growatt.sharePlantLogin(key).catch(e => {console.log(e)})
124+
let login = await growatt.sharePlantLogin(key).catch(e => {console.log(e)})
125125
```
126126

127127
With resolve, the response from the website is returned.
@@ -140,7 +140,7 @@ This plugin is intended for testing. On the Growatt page you can view the data f
140140
I needed it so that I could see how the messages to the different inverters are structured.
141141

142142
```
143-
let login = await Growatt.demoLogin().catch(e => {console.log(e)})
143+
let login = await growatt.demoLogin().catch(e => {console.log(e)})
144144
```
145145

146146
## Get all plant data
@@ -376,7 +376,7 @@ The Value Types from the Parameter
376376
let a = allPlantData[Object.keys(allPlantData)[0]].devices;
377377
let sn = Object.keys(a)[0];
378378
let type = a[sn].growattType;
379-
let com = Growatt.getInverterCommunication (type);
379+
let com = growatt.getInverterCommunication (type);
380380
```
381381

382382
## getInverterSetting
@@ -405,13 +405,13 @@ Therefore, the requests are placed in a queue and processed sequentially. If the
405405
```
406406
// Growatt must be connected
407407
408-
const allPlantData = await Growatt.getAllPlantData(options).catch(e => {console.log(e);});
408+
const allPlantData = await growatt.getAllPlantData(options).catch(e => {console.log(e);});
409409
console.log('Fatched all Data');
410410
if (allPlantData) {
411411
let a = allPlantData[Object.keys(allPlantData)[0]].devices;
412412
let sn = Object.keys(a)[0];
413413
let type = a[sn].growattType;
414-
let com = Growatt.getInverterCommunication (type);
414+
let com = growatt.getInverterCommunication (type);
415415
console.log(com);
416416
let run = []
417417
Object.keys(com).forEach(name => {
@@ -464,7 +464,7 @@ Therefore, the requests are placed in a queue and processed sequentially. If the
464464
let sn = Object.keys(a)[0];
465465
let type = a[sn].growattType;
466466
let v = {param1: (new Date()).getTime()}
467-
await Growatt.setInverterSetting(typ, 'time', sn, v);
467+
await growatt.setInverterSetting(typ, 'time', sn, v);
468468
```
469469

470470
---

0 commit comments

Comments
 (0)