Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Friedkin committed Aug 21, 2020
1 parent 2b2a9fd commit de64c70
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/network/ble/wifi-connection-server/wifiserver.js
Expand Up @@ -43,15 +43,15 @@ export default class WiFiServer extends BLEServer {
switch(characteristic.name) {
case "SSID":
this.ssid = value;
this.doStatusNotification(`Setting SSID to ${this.ssid}\n`);
this.doStatusNotification(`Setting SSID to <${this.ssid}>`);
break;
case "password":
this.password = value;
this.doStatusNotification(`Setting password to ${this.password}\n`);
this.doStatusNotification(`Setting password to <${this.password}>`);
break;
case "control":
if ((1 == value) && this.ssid) {
this.doStatusNotification(`Connecting to ${this.ssid}...\n`);
this.doStatusNotification(`Connecting to <${this.ssid}>...`);
this.connectToWiFiNetwork();
}
break;
Expand All @@ -66,17 +66,17 @@ export default class WiFiServer extends BLEServer {
case "connect":
break; // still waiting for IP address
case "gotIP":
this.doStatusNotification(`IP address ${Net.get("IP")}\n`);
this.doStatusNotification(`IP address: ${Net.get("IP")}`);
Timer.set(() => this.close, 500);
break;
case "disconnect":
this.doStatusNotification(`Connection lost\n`);
this.doStatusNotification(`Connection lost`);
break; // connection lost
}
})
}
doStatusNotification(message) {
trace(message);
trace(message, "\n");
if (this.notify)
this.notifyValue(this.notify, message);
}
Expand Down

0 comments on commit de64c70

Please sign in to comment.