How to enable Blynk to support LASS
Follow this step, it should be easy to enable Blynk to monitor LASS sensors data.
This how-to only focus on the integration procedure. Understand Blynk by visit it’s web site.
- Install Blynk app on mobile
- Setup Blynk
- Run Blynk app
- Create your account
- Create new project
- Name your project
- Hardware model select LinkItONE
- Copy auth token and replace blynk_auth variable in the LASS.ino
- Setup GUI
- setup one Graph Widget
- Click this widget
- Name this graph
- Select your INPUT
- If you want to monitor exist analog sensor, just select the right PIN
- If you want to monitor LASS sensors, select virtual PIN. The LASS enable all system sensors and enable few sensors by APP_ID. Setup V0 for record_id ( the value should be increased in every loop())
- Run the project
- If your LASS setup correctly, you should be able to see V0 sensor increase every minutes depend on how often of your loop()
- Setup LASS.ino
- setup BLYNK_ENABLE = 1
- Update blynk_auth with your token that show in the Blynk app.
- If you have customised your sensors, make sure these setup correctly
BLYNK_READ(SENSOR_ID_RECORDID) // sensorValue[0] : Record_ID
{
Serial.print("\tBlynk comes to read!");
Blynk.virtualWrite(SENSOR_ID_RECORDID, sensorValue[SENSOR_ID_RECORDID]);
}
- d. For debug purpose, you should be able to see debug print "Blynk comes to read!", when Blynk app actually comes for read this sensors.
Reference
Blynk web