Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
msloth committed Nov 1, 2015
2 parents 3411cb5 + 030a5a4 commit f2ac67e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ If you don't know the IP of the TV, or the hostname, you can scan for it using t
```js
lgtv = require("lgtv");

var retry_timeout = 10; // seconds
lgtv.discover_ip(retry_timeout, function(err, ipaddr) {
if (err) {
console.log("Failed to find TV IP address on the LAN. Verify that TV is on, and that you are on the same LAN/Wifi.");
Expand All @@ -68,8 +69,9 @@ If you want to autodiscover each time, this would work,

```js
lgtv = require("lgtv");
lgtv.discover_ip(retry_timeout, function(err, ipaddr) {

var retry_timeout = 10; // seconds
lgtv.discover_ip(retry_timeout, function(err, ipaddr) {
if (err) {
console.log("Failed to find TV IP address on the LAN. Verify that TV is on, and that you are on the same LAN/Wifi.");

Expand Down

0 comments on commit f2ac67e

Please sign in to comment.