Network API - wifi.connection returning incorrect IP address
HipsterBrown opened this issue · 0 comments
HipsterBrown commented
@soapdog pointed out that tessel.network.wifi.connnection(function (error, setting){})
is returning a settings
object with an incorrect IP address.
Here it returns x.x.x.255 instead of the correct IP address...
I believe it has to do with my assumption in this regular expression used to find the IP address in an internal getWifiInfo()
function. I mistook the broadcast IP (Bcast) to be the IP address of Tessel on the network, when it should actually be a field similar to inet
. We can see a sample of the search string by running ifconfig wlan0
on the Tessel.