I have an Arduino Nano sending data over 433mhz wireless transmiter and an arduino uno receiving.
But I want to send diferent variables from the arduino nano.
Can I simply add for example: “Water_Temp_” before the water temperature and concatenate with the variable and send “Water_Temp_26” over wireless and them on the arduino uno identify the text and according to the text save the number to a diferent variable?
Why would you do that instead of sending pre-known messages, where the position of the data within the message tells you what the data is ?
ie - the first data slot is water temp 26, the second data slot is water temp 27, etc, etc
Alternately make up as many message types as there are variables and have the the first data slot be the message type and the 2’nd and 3’rd and … be the data. It’s shorter and easier than concatenating IMO.
A data slot might be a byte long or 16 bits long or whatever you want.