Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • With the code above, how can you say that you don't receive "OK" from ESP8266? Your code contains no read from Serial, so if "OK" is sent, you cannot know it. Commented Oct 30, 2016 at 18:51
  • Ok so my question was stupid i guess. What do I need to add so that I display the "OK"? Commented Oct 30, 2016 at 18:53
  • For that you'll need to check Serial.available() and then use Serial.readString() or other Serial methods. Then you will have to decide how you "debug" your sketch, that could be lighting a LED (quite limited) or printing to another serial port (for that you will need to use SoftwareSerial. I think you can easily find simple examples that just do that. Commented Oct 30, 2016 at 18:59
  • I updated the code above using serial.find(). It still displays "NOT OK". What I don't understand is when I type in the command "AT" everything works fine. When I try to pass it programatically, then it stops working. Commented Oct 30, 2016 at 19:04