To start with Particle Electron, please refer to this example.
If you see the
Invalid Auth Tokenmessages, please check this part of the example:
// Run command "ping blynk-cloud.com", and set Blynk IP to the shown address
#define BLYNK_IP IPAddress(45,55,130,102)
Note, that this is a temporary measure.
There were reports that some versions of Electron firmware failed to work with Blynk. Version
0.6.0is recommended, and
0.5.3is confirmed to work fine.
Blynk can consume quite a lot of data! Use carefully not no overpay for the data plan.
Each call to
setProperty(), and most widget API calls will consume some data. Also, Blynk sends "heartbeat" messages with a fixed interval (defaults to 10 seconds), to keep the network connection alive. Each heartbeat uses ~90 bytes of data. You can modify this interval, putting this line on the top of your sketch (before including Blynk headers):
// Set Blynk hertbeat interval (in seconds)
#define BLYNK_HEARTBEAT 60
Please choose the one that works best for you.