Open invidia191 opened 3 years ago
Where is your logging ?
Is this log output ?:
11:56:13.181 -> WM: 1 11:56:13.228 -> WM: 11:56:13.228 -> WM: Configuring access point... 11:56:13.228 -> WM: AutoConnectAP 11:56:13.228 -> WM: password 11:56:13.697 -> WM: AP IP address: 11:56:13.697 -> WM: 192.168.4.1 11:56:13.697 -> WM: HTTP server started 11:56:26.519 -> WM: Request redirected to captive portal 11:56:26.800 -> WM: Request redirected to captive portal 11:56:36.907 -> WM: Scan done 11:56:36.907 -> WM: DUP AP: telenet-392 11:56:36.907 -> WM: telenet-392-ext2 11:56:36.907 -> WM: -42 11:56:36.907 -> WM: telenet-392-modem 11:56:36.907 -> WM: -58 11:56:36.907 -> WM: TelenetWiFree 11:56:36.907 -> WM: -59 11:56:36.907 -> WM: telenet-392 11:56:36.907 -> WM: -70 11:56:36.907 -> WM: DIRECT-OdC43x Series 11:56:36.907 -> WM: -81 11:56:36.907 -> WM: TP-DEV 11:56:36.907 -> WM: -88 11:56:36.907 -> WM: Sent config page 11:56:48.238 -> WM: WiFi save 11:56:48.238 -> WM: Parameter 11:56:48.238 -> WM: server 11:56:48.238 -> WM: 11:56:48.238 -> WM: Parameter 11:56:48.238 -> WM: port 11:56:48.238 -> WM: 8080 11:56:48.238 -> WM: Parameter 11:56:48.238 -> WM: blynk 11:56:48.238 -> WM: YOUR_BLYNK_TOKEN 11:56:48.238 -> WM: Sent wifi save page 11:56:49.254 -> WM: Connecting to new AP 11:56:49.254 -> WM: Connecting as wifi client... 11:56:49.254 -> WM: Status: 11:56:49.254 -> WM: 0 11:56:49.348 -> WM: [ERROR] WiFi.begin res: 11:56:49.348 -> WM: 6 11:56:53.854 -> WM: Connection result: 11:56:53.854 -> WM: 3 11:56:53.948 -> Should save config 11:56:53.948 -> connected...yeey :) 11:56:53.948 -> The values in the file are: 11:56:53.948 -> mqtt_server : 11:56:53.948 -> mqtt_port : 8080 11:56:53.948 -> blynk_token : YOUR_BLYNK_TOKEN 11:56:53.948 -> saving config 11:56:53.948 -> {"mqtt_server":"","mqtt_port":"8080","blynk_token":"YOUR_BLYNK_TOKEN"}local ip 11:56:53.995 -> 192.168.1.252 11:56:54.572 -> ...................................................
11:56:49.254 -> WM: Connecting as wifi client... 11:56:49.254 -> WM: Status: 11:56:49.254 -> WM: 0 11:56:49.348 -> WM: [ERROR] WiFi.begin res: 11:56:49.348 -> WM: 6 11:56:53.854 -> WM: Connection result: 11:56:53.854 -> *WM: 3
Your wifi is not connecting
11:56:49.254 -> WM: Connecting as wifi client... 11:56:49.254 -> WM: Status: 11:56:49.254 -> WM: 0 11:56:49.348 -> WM: [ERROR] WiFi.begin res: 11:56:49.348 -> WM: 6 11:56:53.854 -> WM: Connection result: 11:56:53.854 -> *WM: 3
Your wifi is not connecting
But i am getting an ip address ? When defining the wifi settings manually, no problem. But i want to use the saved settings to connect with ubidots. I think it is a problem with defining the wifi settings for ubidots.
you can just skip this ? client.wifiConnection(WIFINAME, WIFIPASS);
you can just skip this ? client.wifiConnection(WIFINAME, WIFIPASS);
Damn, that was simple. Thx for the great help ! Awesome.
Basic Infos
Hardware
Esp8266/Esp32: esp8266
Hardware: wemos d1 mini
Core Version: 2.4.0, staging
Description
Hello, i'm trying to combine with ubidots. Problem is all dots in serial monitor after ap config. I need to define the wifi settings, but there is the problem i think.
This is the problem i think (very noobish in scripting):
define WIFINAME "WiFi.SSID()" // Your SSID
define WIFIPASS "WiFi.psk()" // Your Wifi Pass
Settings in IDE
Module: Wemos D1
Additional libraries: UbidotsESPMQTT
Sketch