I’m new to Blynk, that looks to be a really nice IoT platform, congratulations for this amazing work!!
I have one widget that gets temperature from DS18B20 running on a nodeMCU and temperature and humidity from a DHT22 running on a Raspberry Pi, and they are ok.
I’m trying now working with buttons for change some relay’s state, so I looked at some examples and did a simple test code using js. My problem by now is when I execute the command:
EDIT - OK, I am not a fan of the WiringPi so I had to double check if it used onoff or not… but based on what I see, and one of your comments above (that I previously missed) it looks like NodeJS.
so now Blynk connect and authorize, BUT after that, when I ran the widget button:
"fs.js:129
throw new ERR_INVALID_CALLBACK();
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:129:9)
at Object.write (fs.js:511:16)
at Gpio.write (/usr/lib/node_modules/onoff/onoff.js:192:8)
at exports.BoardOnOff.process (/usr/lib/node_modules/blynk-library/blynk-node.js:367:13)
at Blynk.onReceive (/usr/lib/node_modules/blynk-library/blynk.js:481:29)
at exports.TcpClient. (/usr/lib/node_modules/blynk-library/blynk.js:562:50)
at exports.TcpClient.emit (events.js:182:13)
at Socket. (/usr/lib/node_modules/blynk-library/blynk-node.js:50:14)
at Socket.emit (events.js:182:13)
at addChunk (_stream_readable.js:283:12)"
As I’m not master on anything I’ll try with some more basic test code to see if happens something beyond errors, and hope to post good news here soon. Thanks for now!