The use of the ESP8266 in the world of IoT

User avatar
By Stenny
#54562 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.
You do not have the required permissions to view the files attached to this post.