Skip to content

Commit

Permalink
make docs clearer for getIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jun 8, 2017
1 parent 4b6c414 commit de48161
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions devices/EspruinoWiFi.js
Expand Up @@ -255,9 +255,10 @@ exports.disconnect = function() {
turnOff(MODE.CLIENT);
};

/** Get the Access point's IP and MAC address and call
callback(err, { ip : ..., mac : ...}). If err isn't null,
it contains a string describing the error */
/** Get the IP and MAC address when connected to an AP and call
`callback(err, { ip : ..., mac : ...})`. If err isn't null,
it contains a string describing the error. This doesn't work
when only in AP mode (the IP address is always 192.168.4.1) */
exports.getIP = function(callback) {
var ip = {};
at.cmd("AT+CIFSR\r\n", 1000, function cb(d) {
Expand Down

0 comments on commit de48161

Please sign in to comment.