Hello guys and girls:-)
First, sorry for my english im not nativ english speaker:-)
I have trouble with new Blynk IOT, my ESP8266 work like charm but ESP32-DevKitC V4 making trouble.
So, lets explain what going on. Im create new template, then copy ID and Name to sketch, uploaded to board and problem started. After connecting to wifi network created by board i want to connect to 192.168.4.1 but on page it shows “not found:/”, then i try connect over app and in log :
button for reset settings work ok so i hope that board pins are ok:
19:13:09.549 → [46414] Hold the button for 10 seconds to reset configuration…
This board dont have user LED only one, it should be for power indication.So im using custom settings for board.
I try same steps on ESP8266 node MCU and all was ok, on 192.168.4.1 page i chose network, pass, Token and board conect to cloud without any isssues, but ESP32-DevKitC V4 with same steps dont work, any ideas whoat can be wrong.Same scenario hapend when i open new empty sketch EDGENT_ESP32 and change only ID and Name and token or without token .
.
Anyway im using latest arduino IDE 1.8.19,ESP board 2.0.2 chosed in IDE like Node32s (usualy I use this selection and its work ok), blynk lib 1.0.1.
If you have any question ask, I will be happy for any response and any help.
Manny thanks
@Milan_Kanalik I’ve moved your post to its own topic, as it seems totally unrelated to the topic that you posted in.
When using Edgent, you are meant to provision the board with WiFi credentials via the app, not via the captive portal at 192.168.4.1
Clearly, you aren’t using the standard Edgent template, as you have some stuff happening here…
which could well be interfering with the provisioning process.
You havent posted your modifications to the Edgent example sketch, or to the custom board section of Settings.h
You really need an LED connected to your board (with a suitable current limiting resistor) to use the Edgent provisioning process correctly.
Please post the .ino code from your sketch, plus the code from your Settings.h tab
Whenyoiu post code to the forum, it must have triple backtichs on a seperate line before and after the sketch.
Triple backticks look like this:
```
Please copy and paste these if you are in any doubt about which keyboard characters to use to create the triple backticks. Incorrectly formatted code will be deleted.
You should also use triple backticks when posting serial monitor output.
Here its sketch, im not uncomment any boards, if I understand correctly in this case custom settings should be used automaticaly:
// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLHlpi9yHn"
#define BLYNK_DEVICE_NAME "GarazIOT"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_WROVER_BOARD
//#define USE_TTGO_T7
#include "BlynkEdgent.h"
void setup()
{
Serial.begin(115200);
delay(100);
BlynkEdgent.begin();
}
void loop() {
BlynkEdgent.run();
}
I do not any changes in Settings.h tab, this is my settings:
#warning "Custom board configuration is used"
#define BOARD_BUTTON_PIN 0 // Pin where user button is attached
#define BOARD_BUTTON_ACTIVE_LOW true // true if button is "active-low"
#define BOARD_LED_PIN 4 // Set LED pin - if you have a single-color LED attached
//#define BOARD_LED_PIN_R 15 // Set R,G,B pins - if your LED is PWM RGB
//#define BOARD_LED_PIN_G 12
//#define BOARD_LED_PIN_B 13
//#define BOARD_LED_PIN_WS2812 4 // Set if your LED is WS2812 RGB
#define BOARD_LED_INVERSE false // true if LED is common anode, false if common cathode
#define BOARD_LED_BRIGHTNESS 64 // 0..255 brightness control
If there is not custom LED on board can I use any free digital output pin and connect there some LED with resistor and then set this pin to Settings.h tab? It looks that bard pin its ok because when I push it for 10 second it reset saved settings, so this one should be ok.
Thanks
Its home network, ok, im going to switch of firewall in my router and will see what happend. But im not shoore if that help, because ESP8266 work on same port 443 without problems, but im going to try it.
Will inform you.
I already try that yesterday, i change it to 80 but after saving and uploadig, in serial console it show still 443, it looks that you can put there any walue and its not taken??
Now its set to 80:
I already connected on pin 16 LED and set this BOARD_LED_PIN 16 in Settings.h. Diode flashing, with diferent speed but still trouble to connect to blynk cloud.
I gues its some problem with this librrary <BlynkSimpleEsp32_SSL.h>, when I try example sketch ESP32_WIFI all its ok then I try ESP32_WIFI_SSL I get error Secure connection failed. Its there option how to use BlynkEdgent without SSL?
Interesting that this has not yet been addressed anywhere between Blynk and Espressif.
Since I am using the ESP32-S2, I am also using the ESP32 2.0.2 package, and have Blynk on UNsecure no-SSL connections until this gets addressed. Ugly. Still on SSL with ESP8266 - that works fine.
Frankly, I’d forgotten about this until I saw these posts. Hey Blynk, any ideas here? We can’t be the only ones running into SSL issues with ESP32 2.0.2.
Hy Pete
Thanks for felp, that solution what you mention in post above working ok. So thumb up and one more time manny thkanks for you time and your help.
Thank you @PeteKnight . Will check this out 2.0.3 RC1 next few days.
Question I should know the answer to: how do I install this beta? Arduino IDE does not see it.
I see the release on Github, looking for simple installation recipe. Thanks in advance.