Wifi.getCredentials() not working as advertised

When using the getCredentials feature I get a compile error when trying to read ap[I].bssi due to an incompatibility with the byte structure and the promulgated code:

default_start.cpp:51:35: error: call of overloaded ‘println(uint8_t [6])’ is ambiguous

Although the code eventually ran by using:

    Serial.print(ap[i].bssid[0], HEX);
    Serial.println(ap[i].bssid[5], HEX);

which returned “0:0:0:0:0:0” as did reading ap[I].rssi & .channel.

For what it is worth, I made the recommended Particle.process call before reading each access point’s data.



I can confirm this behaviour when I copied the example from the particle docs on this.
The same compile error and 0-values for rssi and channel.
This was on a Photon that had recently self-updated to 0.4.9
I didn’t try this call on the older firmware versions, so I couldn’t say if this is new behaviour.

Thanks for reporting this. I’ll fix the docs.

I removed the BSSID, RSSI and channel from the example since they are always 0 as you mentioned. The docs website should be updated shortly.