Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg0 committed Oct 7, 2019
1 parent b9f5ea2 commit 914f5fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/windows-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ var exec = require('child_process').exec;
var env = require('./env');
var scan = require('./windows-scan');

const testingPath = 'C:\\Users\\hearcomadmin\\AppData\\Roaming\\FitKit\\'
const kioskPath = 'C:\\Users\\kioskUser0\\AppData\\Roaming\\FitKit\\'
// const testingPath = 'C:\\Users\\hearcomadmin\\AppData\\Roaming\\FitKit\\'
const hearcomPath = 'C:\\Users\\hearcom\\AppData\\Roaming\\FitKit\\'

function execCommand(cmd) {
return new Promise(function(resolve, reject) {
Expand Down Expand Up @@ -34,13 +34,13 @@ function connectToWifi(config, ap, callback) {
}

fs.writeFileSync(
kioskPath + 'nodeWifiConnect.xml',
hearcomPath + 'nodeWifiConnect.xml',
win32WirelessProfileBuilder(selectedAp, ap.password)
);
})
.then(function() {
return execCommand(
'netsh wlan add profile filename="'+ kioskPath+'nodeWifiConnect.xml"'
'netsh wlan add profile filename="'+ hearcomPath+'nodeWifiConnect.xml"'
);
})
.then(function() {
Expand All @@ -52,7 +52,7 @@ function connectToWifi(config, ap, callback) {
return execCommand(cmd);
})
.then(function() {
return execCommand('del "' + kioskPath + 'nodeWifiConnect.xml"');
return execCommand('del "' + hearcomPath + 'nodeWifiConnect.xml"');
})
.then(function() {
callback && callback();
Expand Down

0 comments on commit 914f5fe

Please sign in to comment.