-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Callback has to be a Function (azure-iothub@ > 1.7.4) #416
Comments
I'm at a bit of a loss. I've taken the above supplied code. Used my own device id and hub connection string and ran it on a 1.7.5 installation. It worked fine. |
It may be because I am running through node-red function node? Node-RED version: v0.19.4 |
Likely. Will be discussing this with others who might have ideas. |
Which node-red module are you using? |
The Function node. Note that the Azure IoT Hub node works fine at the latest version. |
Thank you. Repro'd and investigating further. |
(fix) Issue #416. Use typeof rather than instanceof Function.
Should be available in the next release. |
@beneuto, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey |
Code working fine using azure-iothub v1.7.4 but breaks in v1.7.5 and above with the error: TypeError: Callback has to be a Function.
Similar problem with azure-iot-device.
Minimal code example:
The text was updated successfully, but these errors were encountered: