-->
Page 1 of 1

Can't open communication between 2 ESP8266s (WiFi Doorbell)

PostPosted: Mon Sep 05, 2016 3:37 pm
by Stenny
I'm trying to setup a WiFi doorbell system at my house. The first ESP8266 (Door_Sensor.ino) senses the current through the front doorbell speaker with a current sensor. (I've tested this function and it works fine.) When the doorbell is pressed the first ESP sends a message to the second ESP (Speaker.ino) which then sounds a small speaker. Unfortunately I have a problem with opening communication between the two ESPs. I can get the first ESP to send "Test Connection Successfull\r" during the setup loop and it is successfully received by the other ESP. However whenever the doorbell is pressed, "Sound Doorbell\r" is not sent. I'm not sure why this would be the case because the code for sending the two messages is essentially the same code. If you have any advice or ideas as to what's wrong with the code I would really appreciate it.

Re: Can't open communication between 2 ESP8266s (WiFi Doorbe

PostPosted: Mon Sep 12, 2016 9:50 am
by Orcanbull
you might wanna try to add client.flush(); seems to solve the problem