Giter VIP home page Giter VIP logo

adafruit_esp8266's Introduction

Adafruit_ESP8266 Build Status

Example code for ESP8266 chipset

adafruit_esp8266's People

Contributors

bovine avatar chatelao avatar damellis avatar driverblock avatar evaherrada avatar ladyada avatar paintyourdragon avatar siddacious avatar tdicola avatar tyeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit_esp8266's Issues

AT+CIPCLOSE resets ESP8266 (after successful HTTP GET)

This is an issue with the ESP8266 module / firmware, not the Adafruit library but I'm describing it here because it may affect people trying to use the library.

The problem I'm seeing is that, after successfully retrieving an HTTP page, sending the AT+CIPCLOSE command to close the TCP connection seems to reset the module. (See full log below.) Maybe this is because the ESP8266 is confused by the fact that the other end has already dropped the connection? (An AT+CIPSTATUS just before the AT+CIPCLOSE gives the status as connected.)

After the reset, the module still appears to be connected to the same wifi network and working (able to do another HTTP GET), so it might be possible to work around this. Still, it seems to complicate the use of the module if it resets unexpectedly (and generates unexpected data in the form of the boot message).

Any one else seen this? Ideas for how to cleanly close the connection without reseting the module?

AT+RST


OK
�ö,����ÿ¨¬�
¡åúÈ@JSè�àè
[Vendor:www.ai-thinker.com Version:0.9.2.4]

ready
AT+GMR

0018000902-AI03

OK
AT+CWMODE=1

no change
AT+CWJAP="Mellis",""


OK
AT+CIPMUX=0


OK
AT+CIFSR

192.168.2.5

OK
AT+CIPSTART="TCP","www.adafruit.com",80


OK
Linked
AT+CIPSEND=61

> GET /testwifi/index.html HTTP/1.1
Host: www.adafruit.com


SEND OK

+IPD,536:HTTP/1.1 200 OK
Date: Sun, 08 Feb 2015 22:31:58 GMT
Server: Apache
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Accept-Encoding, Authorization, Referer, User-Agent
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Credentials: true
Access-Control-Max-Age: 1728000
Last-Modified: Thu, 27 Jun 2013 14:13:27 GMT
Accept-Ranges: bytes
Content-Length: 74
Vary: Accept-Encoding
Content-Type: text/html

This is a test of the CC3000 module!
If you can read this, its working :)

OK
AT+CIPSTATUS

STATUS:3
+CIPSTATUS:0,"TCP","207.58.139.247",80,0

OK
AT+CIPCLOSE

@fÌ8¤ÿ���ÿ¨¬�9¡åúÈ@J?É��è
[Vendor:www.ai-thinker.com Version:0.9.2.4]

ready

two esp connect

hi
i want to connect to esp8266 to each other and use Arduino but i could not connect them.these are my codes what is my mistake?one of them is client and the another is server.
client:
SendToESP8266("AT+RST"); WaitForESP8266(2000); SendToESP8266("AT+CWMODE=3"); WaitForESP8266(5000); SendToESP8266("AT+CIPMUX=1"); //enable multiple connection WaitForESP8266(1000); SendToESP8266("AT+CWJAP=\"MAZ2\",\"123456789\""); WaitForESP8266(8000); Serial.println("");
server:

SendToESP8266("AT+RST"); WaitForESP8266(2000); SendToESP8266("AT+CWMODE=3"); WaitForESP8266(5000); SendToESP8266("AT+CIPMUX=1"); //enable multiple connection WaitForESP8266(1000); SendToESP8266("AT+CIPSERVER=1,8888"); //open port 9999 WaitForESP8266(3000); SendToESP8266("AT+CIPSTART=0,\"TCP\",\"192.168.4.1\",8888"); WaitForESP8266(5000);

section attribute not allowed for 'Pchr'

When I try to compile the "webclient" example, I get the following error:

In file included from espneotest.ino:1:0:
/Volumes/MacHDD/Dropbox/Dropbox/programming/arduino/libraries/Adafruit_ESP8266/Adafruit_ESP8266.h:28:35: error: section attribute not allowed for 'Pchr'
typedef const PROGMEM char Pchr; // Ditto, kindasorta
^
Error compiling.

The error of connection

When I want to connect to my network, an error occurs. I find that the latest response not only contains "OK", so when the library try to split the response by '\n' and read one line, it will get the wrong result.

WIFI CONNECTED
WIFI GOT IP

OK

section attribute not allowed for 'Pchr' typedef const PROGMEM char Pchr; // Ditto, kindasorta

Thank you for opening an issue on an Adafruit Arduino library repository. To
improve the speed of resolution please review the following guidelines and
common troubleshooting steps below before creating the issue:

  • Do not use GitHub issues for troubleshooting projects and issues. Instead use
    the forums at http://forums.adafruit.com to ask questions and troubleshoot why
    something isn't working as expected. In many cases the problem is a common issue
    that you will more quickly receive help from the forum community. GitHub issues
    are meant for known defects in the code. If you don't know if there is a defect
    in the code then start with troubleshooting on the forum first.

  • If following a tutorial or guide be sure you didn't miss a step. Carefully
    check all of the steps and commands to run have been followed. Consult the
    forum if you're unsure or have questions about steps in a guide/tutorial.

  • For Arduino projects check these very common issues to ensure they don't apply:

    • For uploading sketches or communicating with the board make sure you're using
      a USB data cable and not a USB charge-only cable. It is sometimes
      very hard to tell the difference between a data and charge cable! Try using the
      cable with other devices or swapping to another cable to confirm it is not
      the problem.

    • Be sure you are supplying adequate power to the board. Check the specs of
      your board and plug in an external power supply. In many cases just
      plugging a board into your computer is not enough to power it and other
      peripherals.

    • Double check all soldering joints and connections. Flakey connections
      cause many mysterious problems. See the guide to excellent soldering for examples of good solder joints.

    • Ensure you are using an official Arduino or Adafruit board. We can't
      guarantee a clone board will have the same functionality and work as expected
      with this code and don't support them.

If you're sure this issue is a defect in the code and checked the steps above
please fill in the following fields to provide enough troubleshooting information.
You may delete the guideline and text above to just leave the following details:

  • Arduino board: INSERT ARDUINO BOARD NAME/TYPE HERE

  • Arduino IDE version (found in Arduino -> About Arduino menu): INSERT ARDUINO
    VERSION HERE

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too): LIST REPRO STEPS BELOW

pin configration

Can you tell me about the pin configration of arduino with esp8266.
thanks

Error section attribute not allowed for 'Pchr'

Trying to compile the code.
I am getting this error with the Adafruit esp8266 board.
it works well with the arduino board selected from the list.
This is the error. What to do?
section attribute not allowed for 'Pchr'

typedef const PROGMEM char Pchr;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.