Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmakus authored Nov 5, 2023
1 parent 5cd7e84 commit 48cc44d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ readFile("doorbird.0", "TakeSnapshot_1.jpg", function (error, data) {
});
```

or since js-controller 4.1.x
or since js-controller 5

```
setState('doorbird.0.TakeSnapshot', true);
onFile("doorbird.0", "TakeSnapshot_1.jpg", false, function (id, fileName, size, fileData, mimeType) {
onFile("doorbird.0", "TakeSnapshot_1.jpg", true, function (id, fileName, size, fileData, mimeType) {
sendTo('telegram.0', {
text: fileData,
type: 'photo'
Expand Down

0 comments on commit 48cc44d

Please sign in to comment.