How to set bits in a variable

@molesworth
Thanks.

Yes, I do get what you are saying. But I am facing a problem (see other thread if you want) and it is becoming painfully clear I need to set bits to indicate status.

So I am going to use bits to reflect the status of the devices.

Yes, I need to learn about it more but for me at this stage, I am not wanting to bite off more than I can chew - though I guess I kind of have if I am asking the question.

@Steve-Mcl
Thanks again.

I got tripped with how to call the function but with that latest post, I have it working in a way I like.

I'll put some effort now into implementing what I just learnt into application.