[SOLVED] ESP8266 Arduino Build Fails for Simple Example

Hi,
I am just getting started, and the start page library and example fails. This is for ESP8266. The example code is:

#include "UbidotsMicroESP8266.h"
#define TOKEN  "[MYTOKEN]"  // Put here your Ubidots TOKEN
#define WIFISSID "[MYSSID]"
#define PASSWORD "[MYPASS]"

Ubidots client(TOKEN);

void setup(){
    Serial.begin(115200);
    delay(10);
    client.wifiConnection(WIFISSID, PASSWORD);
}
void loop(){
    float value = analogRead(A0);
    client.add("Test", value);
    client.sendAll(true);
}

The project fails to compile with 'no matching function for call to ‘Ubidots::sendAll(bool)’. This is pretty frustrating as it is the company’s own example and library from the example. Not a good way to start.
Regards,
Tom

@tvaderpuy sorry it was a problem, We updated the examples but we had not updated the library. Now we update the library. Download the latest version and try it again please.

Best regards,
Metavix

Hi,
I am using the library and example from GitHub instead:

The project compiles, but is sending errors and not uploading data:

Response of ESP8266:

Error at CIPMODE
=>TEST:64.00,TEST:98.00,TEST:79.00,TEST:83.00,TEST:151.00,
Response of ESP8266:

Response of ESP8266:

Response of ESP8266:

Error at CIPMODE
=>TEST:64.00,TEST:98.00,TEST:79.00,TEST:83.00,TEST:151.00,
Response of ESP8266:

Response of ESP8266:

Response of ESP8266:

Error at CIPMODE
=>TEST:64.00,TEST:98.00,TEST:79.00,TEST:83.00,TEST:151.00,
Response of ESP8266:

The SSID, PASS and TOKEN are correct, and a few minutes ago I was using the same module on a Blynk project and it was working correctly. Any ideas?
Regards,
Tom

@tvanderpuy
Maybe ubidots-esp8266 won’t work for you. How are you using ESP8266?
Because that library is to use ESP8266 as UART method. if you are programming ESP8266 as stand alone method UbidotsMicroESP8266 is your library.

Send me a picture of your connection. I will be here to solve your issue. :smiley:

EDIT: There are a post to explain how is a stand alone method, it is here
Best regards,
Metavix

Hi,
I am using the UbidotsMicroESP8266 library now, and it compiles, and the serial monitor just shows dots “…” as it loops. Still no data in the cloud. The program is:

#include "UbidotsMicroESP8266.h"                    
#define TOKEN  "[MYTOKEN]"  // Put here your Ubidots TOKEN
#define WIFISSID "[MYSSID]"
#define PASSWORD "[MYPASS]"

Ubidots client(TOKEN);

void setup(){
    Serial.begin(9600);
    delay(10);
    client.wifiConnection(WIFISSID, PASSWORD);
}
void loop(){
    float value = analogRead(A0);
    client.add("temperature", value);
    client.sendAll(true);
}

The module I am using is an Adafruit Huzzah. There is no connections, just the FTDI interface to power and program it.

Any ideas?
Thank you,
Tom

@tvanderpuy only show infinites dots?
if it only shows infinite dots is a WiFi connection problem
Could you try use a basic example of ESP to connect to WiFi?
Best Regards,
Metavix

Hi,
I managed to get the WIFI connected:

..WiFi connected
IP address: 
10.0.1.100
=>Temperature:86.00000$<null>,
POSTING YOUR VARIABLES
OK=>Temperature:191.00000$<null>,
POSTING YOUR VARIABLES
OK=>Temperature:180.00000$<null>,
POSTING YOUR VARIABLES

But the data still does not show up in the cloud. I am using the default ‘put one variable’ sketch for the health monitor temperature.
Any ideas?
Thank you for your help

Never mind,
It is working now. The data is showing up under ‘ESP8266’. How can I change the name it shows up as?
Thank you,
Tom

Yeah @tvanderpuy With that method the ESP creates a new datasource, there it will save the variables.
I am happy because it works for you:smiley:
Best Regards,
Metavix

How do you solve the “Error at CIPMODE”?

Thanks.