SSD1306 allocation problem

I am getting trouble displaying my data on an oled(ssd1306) while using ciao.begin()
Here is my code
#include <Wire.h>
#include <UnoWiFiDevEd.h>
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Wire.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 32

#define CONNECTOR "rest"
#define SERVER_ADDR "api.thingspeak.com"
#define APIKEY_THINGSPEAK "****************"

#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
#define SCREEN_ADDRESS 0x3C ///< See datasheet for Address; 0x3D for 128x64, 0x3C for 128x32
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);

int Currentpin = 0;
int Voltagepin = 1;
int zeroCurrent;
int zeroVoltage;
float Currentsensitivity = 0.155;
float Voltagesensitivity = 0.00145;
float Currentintercept = 0;
float CurrentSlope = 0.033;
float Voltageintercept = 0;
float VoltageSlope = 3.406;

void setup() {
Serial.begin(9600);
Ciao.begin();
delay(200);
calibrateCurrent();
calibrateVoltage();
Serial.println("Calibrating .......... Done!");
if(!display.begin(SSD1306_SWITCHCAPVCC, SCREEN_ADDRESS)) {
Serial.println(F("SSD1306 allocation failed"));
for(;;); // Don't proceed, loop forever
}

// Show initial display buffer contents on the screen --
// the library initializes this with an Adafruit splash screen.
display.display();
display.clearDisplay();

}

void loop() {
float Current = (Measure(Currentpin,zeroCurrent)* CurrentSlope )+ Currentintercept;
float Voltage = (Measure(Voltagepin,zeroVoltage)*VoltageSlope)+Voltageintercept;
float Power = Current * Voltage;

Serial.print( "\tVoltage: " );
Serial.print( Voltage );

Serial.print( "\t Current: " );
Serial.print( Current );
Serial.print( "\t Power: " );
Serial.println( Power );

  display.clearDisplay();
  display.setTextSize(1.5);                    
  display.setTextColor(WHITE);             
  display.setCursor(0,0);
  display.print(F("Current : "));                
  display.print(Current); 
  display.println(F(" A"));
  display.print(F("Voltage : "));
  display.print(Voltage); 
  display.println(F(" V"));
  display.print(F("Power : "));
  display.print(Power); 
  display.println(F(" W"));
  display.display();

/*  

Ciao.begin();
String uri = "/update?api_key=";
uri += APIKEY_THINGSPEAK;
uri += "&field1=";
uri += Current;
uri += "&field2=";
uri += Voltage;
Serial.println(uri);
Ciao.println("Sending data on ThingSpeak Channel");
CiaoData data = Ciao.write(CONNECTOR, SERVER_ADDR, uri);

if (!data.isEmpty()){
Ciao.println( "State: " + String (data.get(1)) );
Ciao.println( "Response: " + String (data.get(2)) );
Serial.println("State: " + String (data.get(1)) );
Serial.println( "Response: " + String (data.get(2)) );

}
else{
Ciao.println("Write Error");
Serial.println("Write Error");
}

*/
delay(1000);
}

int calibrateCurrent(){
int acc = 0;
for (int i = 0; i < 10; i++) {
acc += analogRead(Currentpin);
}
zeroCurrent = acc / 10;
return zeroCurrent;
}

int calibrateVoltage(){
int acc = 0;
for (int i = 0; i < 10; i++) {
acc += analogRead(Voltagepin);
}
zeroVoltage = acc / 10;
return zeroVoltage;
}

float Measure(int pin,int zero){
uint32_t period = 1000000 / 50;
uint32_t t_start = micros();

uint32_t sum = 0, measurements_count = 0;
int32_t now;

while (micros() - t_start < period) {
now = analogRead(pin) - zero;
sum += now*now;
measurements_count++;
}

float rms = sqrt(sum / measurements_count);
return rms;
}

the sketch works fine if i comment the ciao.begin() in the setup and it displays the data on my oled. but i need ciao communication to send my data to my server.
Kindly need your help please

@yashgaya, your topic was moved to a more suitable location on the forum.

Can you please spend some time rading How to get the best out of this forum, next edit your post and apply code tags as descrived to your code.

I hope that the API key in your code is not thereal one; if it is, just change it while applying the code tags.

Which board are you using?

Hi thank you for your kind guidance.
As for your question, i am using an arduino uno r3 with wifi in built (developer edition)