crumpy10:
Can someone give me a nudge in the right direction of what I am missing please ?I just can not figure out how to store the information received and then use it to switch the relay.
Below is what I have so far.. be gentle.
Go through the code and add comments as to what you intend each line of code to do.
These comments and a general explanation of what the code is supposed to do, will help the forum readers to understand what it is you are trying to do.
I also suspect that if you read through the code adding the comments you will see what the problem is.