programming problem after using wire.h library

Hi

i am using arduino and esp8266 to make a simple webserver. i wanted to install a RTC so i got one of the tiny RTC. the clock works fine however when i want to add it to my esp webserver program by adding #include <Wire.h>library i can not view the web server even the program compiles with no errors.
few start lines of the code

// comment this part out if not using LCD debug
#include "EmonLib.h"                   // Include Emon Library
EnergyMonitor emon1;                   // Create an instance
#define BUFFER_SIZE 512


#define SSID "route-Factory"
#define PASS "r0b0t2014"
#define PORT  "80"           // using port 8080 by default
#include <SoftwareSerial.h>
#include <elapsedMillis.h>
#include <Wire.h>    // I2C-Bibliothek einbinden
elapsedMillis timer0;
#define interval 60000
char buffer[BUFFER_SIZE];

Hi barakzai786

Just to clarify, are you running the program on an Arduino connected to an ESP8266, or on an ESP8266 itself?

Please post a diagram of how your hardware is connected together.

Also, please post your complete program. If it is too big to put between code tags, you can attach it to a post as an attached file.

Regards

Ray

Which Arduino are your using?

That Buffer_size 512 scares me.
The UNO only has 2048 byte of RAM in total, I would not be surprised if you are running out of RAM.

after a compile look at the last couple of lines in the status window.


Sketch uses 4,676 bytes (14%) of program storage space. Maximum is 32,256 bytes.
Global variables use 461 bytes (22%) of dynamic memory, leaving 1,587 bytes for local variables. Maximum is 2,048 bytes.


This is what a small program reports when I compile it.

What does your compile report?

Chuck.


Check out my Kickstarter Project Memory Panes an expansion RAM Shield for Mega2560's. It adds 1MB of RAM for those projects where 8KB is not enough.