Include esp8266 errror


#1
#include <UbidotsESP8266.h>
#include <SparkFunESP8266WiFi.h>
#include <SoftwareSerial.h> 
#include <PubSubClient.h>

const char mySSID[] = "iPhone";
const char myPSK[] = "tiaratan";
int retVal=0;
ESP8266Client client;

#define TOKEN "A1E-crM35Ixfu2RGfY34nPyDDAthU851rP";
#define ID "5ac3371ac03f972e683a09b0";

Ubidots client(TOKEN);

int i;
int sign;
long value;
float result;
int clockpin = 4;  
int datapin = 5;
int KEY = 2;                 // Connect Touch sensor on Digital Pin 2
unsigned long tempmicros;

void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
esp8266.begin();
pinMode(clockpin, INPUT);
pinMode(datapin, INPUT);
pinMode(KEY, INPUT);       //Set touch sensor pin to input mode

int retVal=0;
retVal = esp8266.connect(mySSID,myPSK);
delay (1000);

}


void loop() {
  while (digitalRead(clockpin)==HIGH) {} //if clock is LOW wait until it turns to HIGH

  tempmicros=micros();

  while (digitalRead(clockpin)==LOW) {} //wait for the end of the HIGH pulse

  if ((micros()-tempmicros)>500) { //if the HIGH pulse was longer than 500 micros we are at the start of a new bit sequence

    decode(); //decode the bit sequence

  }

}

 

void decode() {

  sign=1;

  value=0;

  for (i=0;i<23;i++) {

    while (digitalRead(clockpin)==HIGH) { } //wait until clock returns to HIGH- the first bit is not needed

    while (digitalRead(clockpin)==LOW) {} //wait until clock returns to LOW

    if (digitalRead(datapin)==LOW) {

      if (i<20) {

        value|= 1<<i;

      }

      if (i==20) {

        sign=-1;

      }

    }

  }

  result=(value*sign)/100.00;    

  if(digitalRead(KEY)==HIGH) {      //Read Touch sensor signal
    float value = digitalRead(result);
    client.add(ID,value);
    client.sendAll();
    Serial.println(result,2); //print result with 2 decimals
  }

delay(200);

}

error msg|690x250


#2

Dear @corseliatan,

Can you provide us more information about the issue presented?

All the best,
Maria C.