Works perfectly on OpenWRT dsl modem (DM200). In my application it returns a lot of diagnostic data to diagnose and monitor DSL line. Currently very simple, but returning almost 30 different parameters it MIGHT eventually help to diagnose some weakness better than LAZY technician, who then tried to charge me for undone service Thanks!
By the way: if a space on target device is a concern (as in my case) there is another way for downloading and putting “Blynk for LUA” on remote device. I simply downloaded the release package from github and put it on OpenWRT device with SCP, so the whole stuff with “wget” can be omitted. This specifically addresses some @raphik’s issues.
Wondering if anyone can help?
Do you know if the video stream Blynk.setProperty(V1, “url”, “http…”); works?
my code is:
local wanwan = getWanIP()
str = wanwan:gsub('[\r\n]','')
local string camera1 = "https://"..str..":8080/video.url"
local string camera2 = "https://"..str..":8080/video.url"
Blynk.setProperty(V15, "url", camera1);
Blynk.setProperty(V16, "url", camera2);
And it returns with
lua: ./blynk.lua:61: attempt to index local 'self' (a nil value)
./blynk.lua:61: in function 'setProperty'
blynkmon.lua:141: in function 'func'
./timer.lua:22: in function 'run'
blynkmon.lua:152: in main chunk