tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.63k stars 1.98k forks source link

After connection via Wifimanager how do I pass the SSID and Pass for use with Thinger.io #1143

Open waketech03 opened 4 years ago

waketech03 commented 4 years ago

Basic Infos

Hardware

WiFimanager Branch/Release:

Esp8266/Esp32:

Hardware: ESP-12e, esp01, esp25

ESP Core Version: 2.4.0, staging

Description

Need to pass SSID and Password to (thing.add_wifi(SSID, SSID_PASSWORD);) how do I retrieve it and pass it over ?

Settings in IDE

Module: Wemos D1

include

include

include

include

include

include

include

// BME280 I2C address is 0x76(108)

define Addr 0x76

define USERNAME "TBA" //thingerio username

define DEVICE_ID "TBA" //thingerio device name

define DEVICE_CREDENTIAL "TBA" //thingerio pass

ThingerWifi thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() { Serial.begin(115200); WiFiManager wifiManager;

wifiManager.autoConnect("AutoConnectAP"); Serial.println("connected...yeey :)"); Wire.begin();

thing.add_wifi(SSID, SSID_PASSWORD);

tablatronix commented 4 years ago

You should check to see if there is a way to use the non wifi classes, it does not require them since you are already handling wifi..

waketech03 commented 4 years ago

ok I will have to research this as I am a noob, so I guess the answer to my original question is there is not a way ?