Skip to content

Commit eb8a4b9

Browse files
authored
Merge pull request #138 from bavis-m/master
2 parents c86c74d + 80cc21b commit eb8a4b9

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ program
3434
.description('link a new device')
3535
.option('--ssid <ssid>', 'name of WiFi to connect to')
3636
.option('--password <password>', 'password of WiFi')
37+
.option('--bind-addr <ip>', 'ip of wireless interface to broadcast on')
3738
.option('--api-key [apiKey]', 'your tuya.com API key')
3839
.option('--api-secret [apiSecret]', 'your tuya.com API secret')
3940
.option('--schema <schema>', 'your tuya.com app identifier')

lib/link.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ async function link(config, options) {
3636
password: 'examplepassword',
3737
schema: options.schema,
3838
region: options.region,
39-
timezone: options.timezone
39+
timezone: options.timezone,
40+
bindAddr: options.bindAddr
4041
});
4142

4243
const spinner = ora('Registering devices(s)...').start();

package-lock.json

Lines changed: 8 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"homepage": "https://github.com/TuyaAPI/cli#readme",
2727
"dependencies": {
2828
"@tuya/tuya-connector-nodejs": "^2.0.2",
29-
"@tuyapi/link": "^0.3.4",
29+
"@tuyapi/link": "^0.4.0",
3030
"@tuyapi/openapi": "^1.3.0",
3131
"@tuyapi/stub": "^0.2.0",
3232
"cli-table3": "^0.6.0",

0 commit comments

Comments
 (0)