This is what I have so far. I am using the Inject to create a data base
Next I am Joining 4 MQTT In nodes in a Join node as an Array, and I'm getting my values
Then I am going to a function Node
Firstly, please post code as code it makes it a lot easier to read and to respond to.
Secondly, you haven't shown an example of the actual data you are getting back from MQTT. Most likely it is not quite what you think which is throwing out your insert.
Thirdly, you have multiple fields that you are updating but only one input.
My guess is that the msg.payload you are getting is an object and you need to pick it apart.
I'm still very new to node red, I am a controls engineer by trade, usually just program ladder logic, g-code etc. but yes it is right, did not know you could expand them. lol
not sure where i do this
So if i want to get this data into a SQLite table, I guess what is the next step, ive been working on this for a few shifts now and am not getting anywhere.
Spend the next 5 minutes on this. Pay particular attention to the bit about the "copy path" button that appears under your mouse cursor when you hover over a value in the debug sidebar.
I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
Note where your image says "Object" - that indicates to you that you have some structured data. Typically SQL doesn't like that and your insert statement wants simple data - a string, number, date, etc.
So you need to pick out the actual data values from those objects, that's what you need in your SQL statement.