How to activate external antenna on the Photon

I’m trying to connect an external antenna to my Photon, and while a number of places do say it’s possible to use one line of code to switch from the chip antenna to an external antenna, I’m having a hard time figuring out what that one line of code is. Anyone know how to switch the antenna over to external? I’ve trawled the docs and found nothing. Thanks!

It’s apparently not in the documentation but here’s the call

bool WiFi.antennaSelect(AUTO | INTERNAL | EXTERNAL);

There is a linker issue that prevents this from working at present. Will be fixed with the next release.


What’s the default today, and are there docs about how AUTO works?

1 Like