tzapu / node-red-contrib-blynk

Blynk app integration with Node Red
MIT License
17 stars 5 forks source link

Using MYSQL DB data for Auth Key #28

Open egadgetjnr opened 8 years ago

egadgetjnr commented 8 years ago

Hi There, I'm fairly new to Node-Red and was hoping you could help me (I'm not sure where else to go for help and can't find anything on the web to answer my question).

I have a few people whom are using a project in the Blynk app, and each of them have a Hardware Device.

I was looking at routing the data (that is communicated using MQTT for legacy reasons) from their hardware device through to the relevant Blynk App and although I could just use a function in Node-Red, It makes it difficult to add more devices in the future.

I was thinking of having Node-Red run a SQL Query based on the users Hardware ID and retrieve their Auth Key, however, I'm not sure how to set using the Blynk Node this Auth Key as a variable.

Does what I'm trying to say make sense? lol. Is there a Node-Red specific way to do this?

Thanks heaps for your help.

P.S. I love what you've done with the Blynk Nodes and can't wait to see the Websockets version with the same functions. :P