Blynk is very portable, the same C++ source code can be used.
You’ll have to (mostly):
- Remove Arduino-related stuff like headers and direct pin operations. Similar to what
BLYNK_NO_BUILTIN
flag does. - Implement the connectivity transport adapter. See example in
src/Adapters/BlynkSerial.h
- Implement main include header, like
src/BlynkSimpleStream.h
- Implement utility/debug functions:
src/Blynk/BlynkDebug.h
,src/utility/utility.cpp