Log Event
How to log an event using firmware API

Get an Event code

  1. 1.
    Go to Device Template -> Events
  2. 2.
    Find Event Code. Edit it if needed
  3. 3.
    Copy it to use in the firmware code below:

Log Events from device

Use Blynk.logEvent command to log events to the Blynk cloud.
1
Blynk.logEvent("event_code");
2
3
// Also, you can add a custom description:
4
Blynk.logEvent("event_code", String("Temperature above threshold: ") + temp);
Copied!
Last modified 6mo ago