Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Leandro Silva
#16922 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...");
}