I have a server that sends data using UDP and want to use smart-serial to receive these data.
Since there will be no triggers or timers or command/response pairs, how can I read the data and set param with the data?
Hi Dennis,
There are a few ways you could do this. One of them is work with a certain length in which case the connector will split up the data to packages of that length triggering the parameter every time. You can then check the data if it makes sense, if not, store it in another parameter, wait until the response triggers again, append the saved data with the new and see if it makes sense then and so on. Please find some more info on working with smart serial connectors here: Smart Serial
This ere is also a how-to use case that might interest you, please find it here: How to define serial and smart-serial responses in one and the same protocol
Hi Dennis, short answer is yes but dojo doesn’t allow me to easily post code here, please find a follow-up answer below.
Hi Timothy,
How does the connector work, every time the data is received it will try to match it with the response/s?