See this post for a complete set of code and circuit for Uno-ESP8266 connection. The circuit will also work for 3v3 to 3v3.