-#include <Wire.h> 
+#include <Wire.h>
 #include <ESP8266WiFi.h>
 #include <EEPROM.h>
 
 const int I2C_ERROR = 10;
 
-const char* ssid     = "YOUR_WIFI_NETWORK_SSID";
-const char* password = "YOUR_WIFI_NETWORK_PASSWORD";
-
-const char* host = "data.sparkfun.com";
-const char* streamId   = "YOUR_STREAM_ID";
-const char* privateKey = "YOUR_PRIVATE_KEY";
+const char* ssid     = "YOUR WIFI SSD";
+const char* password = "YOUR WIFI PWD";
+
+// no support for hhtps!
+const char* host = "YOUR WEBSITE URL";
 
 boolean busActivity = false;
 int error = 0;
 int systolic = 0;
 int diastolic = 0;
 int hr = 0;
-  
+
 void setup() {
 
   // LED pin
   pinMode(4, OUTPUT);
   digitalWrite(4, HIGH);
-  
+
   delay(100); //add a small delay
   Serial.begin(115200);
-  Wire.begin(0,2); // initialise things
+  Wire.begin(0, 2); // initialise things
   delay(10); //add a small delay
   Serial.println("Wire initialized");
 

  Serial.println();
  Serial.print("Connecting to ");
  Serial.println(ssid);
  
  WiFi.begin(ssid, password);
  
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println("");
  Serial.println("WiFi connected");  
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());  

  // Turn the LED on (active low) so user knows WiFi is up
  digitalWrite(4, LOW);   
  
  // We just need one byte, but 4 is the minimum.
  EEPROM.begin(4);
}

    // Blink it
    blinkLED();

  } else {
    Serial.println("Hmm, I2C bus activity detected, but nothing to do.");
  }
}

void blinkLED() {

  for (int i = 0; i < 4; i++) {
    digitalWrite(4, HIGH);  // Turn the LED off
    delay(100);
    digitalWrite(4, LOW);   // Turn the LED on (active low)
    delay(100);
  }
}
void busActivityDetected() {

  busActivity = true;
}

int getMeasurementCount() {

  int addr = 0x00;
  byte rdata = 0x00;

  // Get current number of measurements at 0xFF
  Wire.beginTransmission(0x50);
  Wire.write(0xFF);
  Wire.endTransmission();
  Wire.requestFrom(0x50, 1);

  if (Wire.available()) {
    rdata = Wire.read();
    error = 0;
  } else {
    error = I2C_ERROR;
    // Wait a little for things to settle
    delay(300);
    return 0;
  }

  if (rdata == 0) {
    Serial.println("Nothing stored.");
    return 0;
  }

  return rdata;
}

void refreshLastMeasurements(int addr) {

  byte rdata = 0x00;

  // read measurement
  Wire.beginTransmission(0x50);
  Wire.write(addr);
  Wire.endTransmission();
  Wire.requestFrom(0x50, 4);

  if (Wire.available() != 4) {
    Serial.println("Less than 4 bytes found?");
    return;
  }

  hr = Wire.read();
