I'm relatively new to this so I'm struggling to find the right solution to my woes.
I currently have a Lora Node transmitting some Barometric Data to my Lora Receiver/Arduino stack up, this part works fine, a connection between sender and receiver is made and the packet data from the sender appears in the serial monitor.
The issue I have is trying to turn the packet data into variables which I can then use for an IOT dashboard.
I will post the code when I can but essentially the packet data is this;
Packet Received: Temp 22.45
Packet Received: ATP 12.22
Previously all my readings have been in one string such as;
Packet Received: Temp 22.45 ATP 12.22
In the instance of a single string I would just use the substring function to pick out the individual readings and use these.
However with the strings in two packets the substring function seems to get lost because it doesn't actually know which packet im referring to.
Is there an if solution somewhere to look at the string first and if Temp appears then create the temp variable, else create an ATP variable?
Any help is appreciated.