from GitHub ( https://github.com/esp8266/Arduino )
by the newest ESP8266 library , you can use these functions to set/scan hidden network.
--------------------------------------------------------------------------
void softAP(const char* ssid, const char* passphrase, int channel = 1, int ssid_hidden = 0);
int8_t scanNetworks(bool async = false, bool show_hidden = false);