as well as the photon change log thread:
WiFi.antennaSelect(“chip”);
WiFi.antennaSelect(“u.LF”);
Failed to work. See errors below
/spark/compile_service/shared/workspace/6_hal_12_0/firmware-privamribot.cpp: In function ‘void setup()’:
/spark/compile_service/shared/workspace/6_hal_12_0/firmware-privamribot.cpp:91:8: error: ‘class spark::WiFiClass’ has no member named ‘AntennaSelect’
changing capitalization
In function ‘void setup()’:
error: ‘class WiFiClass’ has no member named ‘antennaSelect’
note here it is "WiFi.selectAntenna()" rather than "WiFi.antennaSelect()"
Neither seemed to compile though:
/spark/compile_service/shared/workspace/6_hal_12_0/firmware-privagaragebotv1.1.cpp: In function 'void setup()':
/spark/compile_service/shared/workspace/6_hal_12_0/firmware-privagaragebotv1.1.cpp:94:28: error: no matching function for call to 'spark::WiFiClass::selectAntenna(const char [5])'
int CharsWrote = 0;
^
/spark/compile_service/shared/workspace/6_hal_12_0/firmware-privagaragebotv1.1.cpp:94:28: note: candidate is:
In file included from ../wiring/inc/spark_wiring.h:41:0,
from ./inc/application.h:29,
from /spark/compile_service/shared/workspace/6_hal_12_0/firmware-privagaragebotv1.1.cpp:2:
../wiring/inc/spark_wiring_wifi.h:167:9: note: int spark::WiFiClass::selectAntenna(WLanSelectAntenna_TypeDef)
int selectAntenna(WLanSelectAntenna_TypeDef antenna) {
^
../wiring/inc/spark_wiring_wifi.h:167:9: note: no known conversion for argument 1 from 'const char [5]' to 'WLanSelectAntenna_TypeDef'
You can see the correct syntax in the tests linked below, for example WiFi.selectAntenna(ANT_EXTERNAL)
This does not compile in the cloud yet, but it does on the develop branch if you’re building locally. We look forward to releasing a new firmware version soon.
Yes that’s correct. We have one critical issue to address before we can roll out a new image to the cloud, but we are very much hoping it happens this week, such subsequent updates happening every couple of weeks.
So I have hooked up an external antenna following my earlier post just to see if the current photon firmware would auto switch between the external and internal antennas upon boot. I have been using the built in fxn, WiFi.RSSI() , to monitor the wifi strength. I have definately noticed a several dB boost in signal and in performance when using an external antenna such as the one from SparkFun . This boost seems too large for the external antenna simply funneling more wifi signal into in the internal antenna rather than acting as the antenna itself, but if it is not auto switching maybe that is what is happening.