Skip to content

Commit

Permalink
Fix for SSID and passwords starting with 0x
Browse files Browse the repository at this point in the history
Enforce string type for SSID and password in configure command.
  • Loading branch information
maxmouchet authored Apr 4, 2018
1 parent b9b554e commit 07a08f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/commands/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ exports.description = 'Control a device by invoking the given method';
exports.builder = {
ssid: {
required: true,
description: 'SSID of the WiFi network'
description: 'SSID of the WiFi network',
type: 'string'
},

passwd: {
required: true,
description: 'Password of WiFi-network'
description: 'Password of WiFi-network',
type: 'string'
}
};

Expand Down

1 comment on commit 07a08f5

@exidez
Copy link

@exidez exidez commented on 07a08f5 Jun 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didnt think any one else would have an SSID and password with 0x. Good find. thanks!

Please sign in to comment.