Trying to connect and get data from TTN V3´s MQTT Integration..
Using function Mqtt in -> Debug, it connects fine "green light" and "connected" in console, however im getting no data from the V3 mqtt server..
Not familiar with your questions Topics? perhaps i missed somthing here ( first tryout with node-red )
When you integrate in V3 on application basis you get mqtt server adress, login, passw.
I opened node-red.... in flow1 dragged Mqtt in and debug to console, opened Mqtt in and connected to Mqtt server with login & passw. wich worked fine, but no data in debug or console.
Yep, Thanks, got it working, totally missed to subsribe to Topic thought that # was standard..... "feel a bit stupid right now"..... the box was infront of me all the time... sorry
Ill try the Explorer
A quick question regarding node-red, lets say you have 10 sensors coming with 10min transmit interval via the same Mqtt-in function ....how would you proceed to divide the data and publish on console, via "function block" or?... there is as i see it several ways of doing this...what would be the most efficient way in your opinion.
Another idea i have is to monitor these sensors with a timer funktion/s saying -> if sensor xx havent been active in 30min, then....
Do you know if there is a function for this to be downloaded to the palette?
Hi again, no, the data is just fine i get it as its suppose to, as i said the first problem was that i was under the impression that it dident work and i assumed that node red had /# as standard in the mqtt node... when you asked me regarding the topic i dident get it first... not fully familiar with mqtt and downloaded node-red yesterday sooo...
i´m involved in a project regarding surveillence of sensors and are struggeling learning node-red lol, i´m an oldschool c-programmer and trying, trying you know
Its a different mindset but once you "get it" (the whole idea of a message traveling down a wire with properties you use en route) it's very very simple.
Take your time, watch some videos (there's loads on YouTube), read the docs (link up top).
With your background, and some playtime, you'll get going on a few days. Its worth the effort. There is very little I've not achieved in node red that I didn't in a fully typed language. And much quicker too.
Read the page working with messages. Pay particular attention to the bit about the debug node and "When you hover over any element, a set of buttons appear on the right"
It pretty much simplifies accessing any property of a payload
Trust me, injest that page and you'll be off to a flying start.
Also from MQTT nodes - that may be a string - but it looks like it could be a JSON object "wrapped in a string" - so maybe try setting the output of the MQTT node to be a parsed JSON object - then the "working with messages" will make a lot more sense