mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1143] After connection via Wifimanager how do I pass the SSID and Pass for use with Thinger.io #979
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#979
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @waketech03 on GitHub (Nov 15, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1143
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<Wire.h>
#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <ThingSpeak.h>
#include <ThingerWifi.h>
// 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 on GitHub (Nov 15, 2020):
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 on GitHub (Nov 15, 2020):
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 ?