I'm trying to get my Photon to run the WiFi Scan example and I'm having a number of issues:
1. The Scan results I get using Zerynth are poor compared to using a similar program with the Particle complier and environment. Typically the number of access points returned by Zerynth is 3 whereas Particle returns 11+.
From my testing I believe I have found that the antenna is switched by Zerynth auto_init to the Photon external connector and not the Photon on-board antenna.
2. I have tried without success to use the set_antenna command. This appears to stop everything (I get no serial output) no matter what value I use (e.g wifi.set_antenna("3" or wifi.set_antenna(3)). The documentation does not give any examples of use of this or the get_rssi or get_error commands. Perhaps I'm not using this correctly? Without adequate documentation I cannot say.
a) confirm my testing results regarding the antenna default is it being switched away from the on board antenna and
b) clarify and improve the documentation for the BCM43362 so that I can use all of the Zerynth features.