Have I lost the plot here......
I'm trying to get the button code to work and have managed to get it to publish a message when the button is pressed, which is great........ but then it stops!
If I press the button again notthing happens, no error, no crash, no publish, even if i wait a while.
Any idea??
Thanks.
****** EDIT ******
Sussed it, a pull up is needed to bring the pin up again after it has been pulled down by pressing the switch.
Well that works anyway, would be good to know if that's the correct way of doing it.
Thanks again.