itead / ITEADLIB_Arduino_WeeESP8266

An easy-to-use Arduino ESP8266 library besed on AT firmware.
MIT License
528 stars 284 forks source link

arduino due freeze #7

Closed antoniosap closed 9 years ago

antoniosap commented 9 years ago

the code

ESP8266 wifi(Serial2);

for arduino due defined as global freeze all serial ports.

I need to move inside setup.

void setup(void)
{
    Serial.begin(9600);
    Serial.print("setup begin\r\n");
    ESP8266 wifi(Serial2);
    Serial.print("FW Version:");
    Serial.println(wifi.getVersion().c_str());
shennongmin commented 9 years ago

It should be no problem.

antoniosap commented 9 years ago

no problem ? freeze and hang. compiler problems ?