blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.81k stars 1.38k forks source link

Can't add new device Create template first #523

Closed DaleSchultz closed 3 years ago

DaleSchultz commented 3 years ago

Blynk library version: [1.0.0-Beta.3] IDE: [Arduino] IDE version: [1.8.13] Board type: [ESP8266] Additional modules: [none]

Scenario, steps to reproduce

Trying to get a minimal Blynk app provisioned I created a template and obtained template ID and name:

#define BLYNK_TEMPLATE_ID "TMPL2D_ewCNL"
#define BLYNK_DEVICE_NAME "CAB UI"

I installed the egdent library as decribed at https://docs.blynk.io/en/getting-started/activating-devices/blynk-edent-wifi-provisioning

I created an example sketch as directed and copied in my template ID and device name Compiled Flashed to ESP

Serial port monitors content looks good....

16:47:52.590 -> [398] Product:  CAB UI
16:47:52.590 -> [400] Hardware: 1.0.0
16:47:52.590 -> [402] Firmware: 0.1.0 (build Apr 27 2021 16:47:12)
16:47:52.590 -> [406] Device:   NodeMCU @ 80MHz
16:47:52.590 -> [409] MAC:      C8:2B:96:08:CE:E5
16:47:52.590 -> [412] Flash:    4096K
16:47:52.590 -> [414] ESP core: 2.7.4
16:47:52.590 -> [416] ESP SDK:  2.2.2-dev(38a443e)
16:47:52.590 -> [419] Boot Ver: 6
16:47:52.590 -> [421] Boot Mode:1
16:47:52.590 -> [423] FW info:  460784/1634304, MD5:66321a74b9931059f0cc138a8cd17c29
16:47:52.777 -> [626] Free mem: 31688
16:47:52.777 -> [626] --------------------------
16:47:52.777 -> [626] INIT => WAIT_CONFIG
16:47:53.429 -> [1247] AP SSID: Blynk CAB UI-64624
16:47:53.429 -> [1247] AP IP:   192.168.4.1
16:47:53.429 -> [1248] AP URL:  blynk.setup

I have confirmed that the phone is in fact broadcasting a wifi AP using the template name and a number

In the app running on an Android pixel 4a I try to add a device

Expected Result

Expected app to add device that is broadcasting

Actual Result

I get the error:

Can't add new device Create template first

Screenshot_20210427-165326

DaleSchultz commented 3 years ago

ok so I think the ID and name I pasted in was for a template. Perhaps a template should not show me an ID and name?

So I copied in the name and Id for a device

#define BLYNK_TEMPLATE_ID "TMPLHkTSTrkL"
#define BLYNK_DEVICE_NAME "test"

and indeed adding that to the phone does go a step further, it says it wants to connect to a wifi network and lists it.

Feedback: the screen does not ask a question nor does it say the user should pick a network. It looks like the only option is to cancel.

Once I click the network it found, I get the error:

Not correct device

Screenshot_20210427-171648

It is the only device running...

DaleSchultz commented 3 years ago

oh dear, it looks like I added this to the wrong repository! I thought I was on the beta one.... I'll start again over there.