How blynk-technologies/blynk-library works
Blynk C++ Library is an embedded-device client for connecting supported boards to Blynk Cloud and exposing device behavior to mobile-app interfaces. The typical workflow is to obtain an auth token in the app, configure a board and its network transport, connect to the cloud, then exchange virtual-pin data and use timers or widgets in device code. The tree shows protocol, handler, widget, adapter, and timer components; sampled excerpts are limited, so uncertain internal dispatch and unsampled feature wiring are not asserted.
Main entry points: main.cpp Device application · BlynkGsmClient.h GSM client · BlynkTimer.h Timer API · BlynkProtocol.h Blynk protocol
Components 18
Device Connectivity
- Network adapters
src/Adapters - Arduino client
src/Adapters/BlynkArduinoClient.h - Linux socket
linux/BlynkSocket.h - GSM client
src/Adapters/BlynkGsmClient.h
Cloud Interaction
- Blynk protocol
src/Blynk/BlynkProtocol.h - Blynk API
src/Blynk/BlynkApi.h - Virtual-pin handlers
src/utility/BlynkHandlers.cpp
Device Features
- Device application
linux/main.cpp - Widget API
src/Blynk/BlynkWidgetBase.h - Widget components
src/WidgetLED.h
Runtime Support
- Timer API
src/Blynk/BlynkTimer.h - Timer runtime
src/utility/BlynkTimer.cpp - Parameter parsing
src/Blynk/BlynkParam.h
Other components
- Blynk app user
- Mobile apps
- Firmware author
- Supported hardware
- Blynk Cloud
Connections 10
- Blynk app user → Mobile apps: uses
- Mobile apps → Firmware author: provides token
- Firmware author → Device application: configures
- Device application → Supported hardware: runs on
- Supported hardware → Blynk Cloud: connects over internet
- Device application → Blynk protocol: begins and runs
linux/main.cpp - Device application → Timer API: schedules callbacks
linux/main.cpp - Timer API → Timer runtime: implemented by
src/utility/BlynkTimer.cpp - GSM client → Blynk protocol: inherits
src/Adapters/BlynkGsmClient.h - GSM client → Arduino client: uses transport
src/Adapters/BlynkGsmClient.h