TomGeorge:
Hi,
As I understand it , each 8266 has one button, only one button, you want to know at a central WiFi point which button is pressed.
Why poll, just wait for the button with its address to send a packet out over the WiFi when it is pressed.You do not need customised code for each 2866, each 2866 can have a set of dip switches on its PCB.
They are used to set the ID of each 2866.When the 2866 boots, it reads the dip switches with it unique ID.
Or am I missing something?
Can you post a simple block diagram explaining your system?
Tom.....
The dip switches are a great idea. I'll have a thought about that.
Robin2:
Jeez, you would have written the 4 or 5 lines of code to iterate over the pins 100 times since you started this Thread - what's the big aversion to a simple reliable and portable solution.What I suggested using jumpers is just a less elegant version of @TomGeorge's proposal to use a DIP switch.
...R
Yes I know that I would have written these few lines in the time of discussion over here. But I prefer to learn instead of being the fastest code writer in the world ![]()
I wanted to thank you all for you're effort. I'm now going to think a bit about the suggested solutions.