Skip to content

Commit

Permalink
example typos
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomuso committed Nov 9, 2017
1 parent 30f6ca0 commit 5c778e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Examples


```javascript
var ads = require('ads')
var ads = require('node-ads')

var options = {
//The IP or hostname of the target machine
Expand All @@ -43,7 +43,7 @@ var options = {
//amsPortTarget: 801
}

client = ads.connect(options, function() {
var client = ads.connect(options, function() {
this.readDeviceInfo(function(err, result) {
console.log(result)
this.end()
Expand Down Expand Up @@ -72,7 +72,7 @@ var myHandle = {
propname: 'value'
}

client = ads.connect(options, function() {
var client = ads.connect(options, function() {
this.read(myHandle, function(err, handle) {
//result is the myHandle object with the new properties filled in
console.log(handle.value)
Expand All @@ -85,7 +85,7 @@ client = ads.connect(options, function() {
### Write something

```javascript
client = ads.connect(options, function() {
var client = ads.connect(options, function() {
myHandle.value = 5
this.write(myHandle, function(err) {
this.read(myHandle, function(err, handle) {
Expand All @@ -109,7 +109,7 @@ var myHandle = {
//cycleTime: 10 -> Time (in ms) after which the PLC server checks whether the variable has changed
}

client = ads.connect(options, function() {
var client = ads.connect(options, function() {
this.notify(myHandle)
})

Expand Down

0 comments on commit 5c778e3

Please sign in to comment.