Blynk Library Openwrt

OpenWRT packages for Blynk C++ library
Alternatives To Blynk Library Openwrt
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Packages3,395
18 hours ago779gpl-2.0Makefile
Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
Openwrt Shadowsocks2,988
2 years ago1gpl-3.0Makefile
Shadowsocks-libev for OpenWrt/LEDE
Openwrt V2ray1,971
a month ago55mitMakefile
V2Ray for OpenWrt
Kikiauth1,099
4 years agoLua
CommonsNet KikiAuth for OpenWrt
Openwrt Chinadns640
3 years ago8gpl-3.0Makefile
ChinaDNS for OpenWrt/LEDE
Openwrt Frp486
14 days ago13mitShell
Frpc & Frps for OpenWrt
Clash249
3 years agomitMakefile
Clash for openwrt [Luci-app-clash] https://github.com/frainzy1477/luci-app-clash
Openwrt Trojan235
2 years ago4Makefile
trojan and its dependencies for OpenWrt
Openwrt Node Packages233
6 days ago11gpl-2.0Makefile
OpenWrt Project Node.js packages. v14.x LTS and v16.x LTS and v18.x TLS
Openwrt Dns Forwarder200
3 years ago3gpl-3.0Makefile
DNS-Forwarder for OpenWrt
Alternatives To Blynk Library Openwrt
Select To Compare


Alternative Project Comparisons
Readme

Blynk OpenWRT package

Build from source:

echo "src-git blynk git://github.com/vshymanskyy/blynk-library-openwrt.git" >> ./feeds.conf
./scripts/feeds update -a
./scripts/feeds install -p blynk -a
make menuconfig

Node.js client

You need nxhack openwrt-node for this.

Select in menuconfig: Languages -> Node.js -> node-blynk-library

Node.js example:

const Blynk = require('blynk-library');

// Initialize Blynk
let AUTH = 'YourAuthToken';
let blynk = new Blynk.Blynk(AUTH);
let v1 = new blynk.VirtualPin(1);

// Register virtual pin handler
v1.on('write', function(param) {
    console.log('Got a value:', param);
});

Python 2.7 client

Select in menuconfig: Languages -> Python -> python-blynk-library

Python example:

import BlynkLib

# Initialize Blynk
AUTH = 'YourAuthToken'
blynk = BlynkLib.Blynk(AUTH)

# Register virtual pin handler
@blynk.VIRTUAL_WRITE(1)
def v1_write_handler(value):
    print('Got a value: {}'.format(value))

# Start Blynk (this call should never return)
blynk.run()

C++ client

Select in menuconfig: Network -> Blynk -> blynk

C++ example:

#include <BlynkApiLinux.h>
static BlynkTransportSocket blynkTransport;
BlynkSocket Blynk(blynkTransport);

const char* AUTH = "YourAuthToken";

BLYNK_WRITE(V1) {
    printf("Got a value: %s\n", param[0].asStr());
}

int main(int argc, char* argv[]) {
    Blynk.begin(AUTH);

    while (true) {
        Blynk.run();
    }

    return 0;
}

Build OpenWRT image:

make -j 5

Build just Blynk:

make package/blynk/compile V=s
make package/node-blynk-library/compile V=s
make package/python-blynk-library/compile V=s

For a rebuild:

make package/blynk/{clean,compile,install} V=s
Popular Openwrt Projects
Popular Makefile Projects
Popular Operating Systems Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Plus Plus
Makefile
Iot
Openwrt
Smartphone