-->
Page 1 of 1

Wire.h and ESP8266WiFi.h conflict

PostPosted: Fri May 08, 2015 12:54 pm
by Leandro Silva
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:
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...");
}