I wanted to make sure that the Station mode autoconnect was definitely switched off, as well as being able to control the Tx power.( improve short distance power efficiency).
The only way I could be sure of this was to try using the esp SDK procedures... the following worked nicely. It may be of use to others ?
In the 'includes' put the following ..
extern "C" {
#include "user_interface.h"
}
My use was ...
bool stat
stat = wifi_station_set_auto_connect(0);
and
system_phy_set_max_tpw(82); // full power here . 1 -82 in 0.25dB steps.
other procedures that might be useful can be viewed in the tools/SDK folder.