I'm trying to control my project:an electronic mosquito.i used an Arduino uno, Bluetooth module,and a sounder.this project is to generate ultrasonic frequency to repel mosquitoes.i made an mit app to turn on,turn off ,increase and decrease the frequency but I keep getting a broken pipe error
Before I get a chance to open the aia, here are two suggestions
The char data type only holds a single letter, if I recall right. So it could never match 'ON' or 'OFF', which have multiple characters. Either use single character commands like 'N' and 'F' or learn to use the string data type and to read until \n delimiter
Get a Bluetooth terminal program from the Play store and use that to test the board code independently from AI2
P.S. I refer you to others with specific hardware experience for your wiring
thank you very much.. I'll try this out and see how it goes..also I'm not clear on the codes you sent to avoid the 516 error,do you mean I should include that in my codes.please throw more light .thank you