New Blynk 2.0

Q1. If I look at the 1.0.0 examples it is not clear on the following:

does this replace
BlynkEdgent.begin(); 

this?
Blynk.begin();

and this 
BlynkEdgent.run();
replace this?
Blynk.run();

Q2. I gather that the Blynk Token is also not needed

char auth[] = "YOUR BLYNK TOKEN";

Q3. I take it that the Virtual Pins are confined to a particular Widget as below (Value Display)?

Q4 I use this code to display a value but it does not work as in the old version of Blynk. Is this correct?
see https://docs.blynk.io/en/mobile-applications/widgets

Blynk.virtualWrite(V1, 32); // Display 32

Thanks

Your suggestions are correct - https://docs.blynk.io/en/getting-started/working-with-templates/prepare-code

Correct. That’s not longer necessary. You can use the Device Provisioning - WiFi provisioning - Blynk Documentation.

Q3. I take it that the Virtual Pins are confined to a particular Widget as below (Value Display)?

Yes. However, for value display all data streams should be available. Do you see some pin missing?

Looks correct. Do you have selected V1 in the widget settings?

Q1 - I think you’re correct

Q2 - As far as I know, the new version uses auth tokens in the same way as before, but if you’re using the automatic provisioning then maybe you don’t see it (I never managed to get dynamic provisioning working during beta testing, so had to manually enter the auth token via the captive portal.

Q3 - The datastreams are configured in the device template, via the web portal, and are available to all widgets in that device. The thing to look out for is that the default maximum value is 1, so if you write a value higher than that to the virtual pin it well be displayed as 1

Q4 - It should work the same, but beware of the issue I pointed out in Q3

Pete.

1 Like

Hi Pete, eventually after 2 days struggling, I got this working. I see the potential in V2.0 but it is heavy going. Still have loads of questions but will ask in a new topic.

Les