Mesh range / external antenna?

There will eventually be a setting to set and save the selected mesh antenna (internal vs. external). However, if you want to play around with it now, you can just copy and paste this function and call it to select the external (u.FL connector) mesh antenna. The setting is not saved. The default is internal.

void selectExternalMeshAntenna() {

#if (PLATFORM_ID == PLATFORM_ARGON)
	digitalWrite(ANTSW1, 1);
	digitalWrite(ANTSW2, 0);
#elif (PLATFORM_ID == PLATFORM_BORON)
	digitalWrite(ANTSW1, 0);
#else
	digitalWrite(ANTSW1, 0);
	digitalWrite(ANTSW2, 1);
#endif
}
15 Likes