Wire.h and ESP8266WiFi.h conflict
Posted: Fri May 08, 2015 12:54 pm
I'm trying to use Wire.h library to read data from my HMC5883L through I2C and ESP8266WiFi.h library to send collected data to my server. My problem is: When I try to use both libraries, ESP just freezes... Here follows some examples:
Works ok:
Works ok:
ESP freezes:
Works ok:
Code: Select all
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(9600);
Serial.println("Final Setup");
}
void loop() {
Serial.println("Loop...");
}
Works ok:
Code: Select all
#include<Wire.h>
void setup() {
Serial.begin(9600);
Serial.println("Final Setup");
}
void loop() {
Serial.println("Loop...");
}
ESP freezes:
Code: Select all
#include<Wire.h>
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(9600);
Serial.println("Final Setup");
}
void loop() {
Serial.println("Loop...");
}