ESP8266_Standalone compile errors

I think they’re planning a version update in the next day or three, with significant changes.
As much as I’d like to have this working sooner, I’d most like to have it working with that update.

I also have compile errors, different one than you have. I post them here, maybe they can help.

In file included from /Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:15:0,
from ESP8266_Standalone.ino:26:
/Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkApiArduino.h:44:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkApi::processCmd(const void* buff, size_t len)
^
In file included from /Users/steve/Documents/Arduino/libraries/blynk-library-master/BlynkSimpleEsp8266.h:16:0,
from ESP8266_Standalone.ino:26:
/Users/steve/Documents/Arduino/libraries/blynk-library-master/Blynk/BlynkProtocol.h:159:6: warning: always_inline function might not be inlinable [-Wattributes]
void BlynkProtocol::processInput(void)
^

Sketch uses 200,068 bytes (38%) of program storage space. Maximum is 524,288 bytes.

1 Like

@steve, these are not the errors, just the warnings. You have successfully built your sketch. Congrats!
For now, we can’t eliminate those warnings (they are actually needed for better operation of Blynk).

Inside the iOS app, what hardware type should I select using an esp8266 device?
There is no such device in the list, so I don’t know how to use it.
Please let me know.
thank you
marco

I see, well that’s cool. Thank you !

@capofalcone,
Our bad, I see… we forgot to include ESP in the Apps.
But there is a workaround - just select Arduino UNO.
Virtual pins will work, as well as digital operations.
PWM and Analog will probably not work.

We will add ESP to the list with the next update. Sorry for inconvenience.

1 Like

thank you very much, I’ll give it a try.
I’m not so expert, but played with Arduino for a while. What virtual pins are? Never heard before! :flushed:, do you have a link to send me so I can study?
thank you so much!
marco

Hi, any updates about this?

I have the exact same compile errors.

Greetz

Bert

@vhymanskyy, the major release for ESP8266/Arduino is out now, big changes should slow down.
The compile errors seem much as before. Maybe you will have time to take a look?

@crosscut, Yaaaay! So happy to hear that :smile:
Yes definitely will take a look at it in a few days!

Hi,

I tried again with the download of the 1.6.1 version and now it works … only a few warnings.

Regards
Bert

Using Arduino 1.6.4 and the esp8266 for 1.6.4 build installed as per the github, I was able to compile and run, but only after commenting out 2 lines in BlynkDebug.h:

#ifdef ESP8266
 //   #include "ets_sys.h"
 //   #include "os_type.h"
    #include "mem.h"
#else
1 Like

Hello all!

I updated the library and checked that it works.
Please install the latest ESP8266 for Arduino using this guide:

The bug is fixed in the latest Blynk version:

Please note that his version is not released yet (beta) :smile:

Cheers!

1 Like

This works very nicely! Thanks for the rapid fix :smile:

1 Like

file ESP8266WiFi.h is missing

1 Like

@ahmsmits: Please read comments in the sketch.

I have tried to compile the ESP8266_Standalone sketch in Arduino 1.6.5 and get errors which all seem to relate to the same underlying issue. For example

Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:241:62: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%li”, value)+1;

If I search for snprintf I can find a ‘vsnprintf’ being used in other contexts - should these calls in BlynkParam be vsnprintf?

Thanks for any help … at this point I am stuck and can’t proceed at all without being able to compile even the simplest sketch.

Paul

What exactly ESP8266 package for Arduino are you using? Maybe they updated something…

Hi,

I am using the Adafruit Huzzah ESP8266 breakout board and the Arduino 1.6.5 IDE with the Adafruit libraries - the ESP8266 libraries are from 10 May 2015. The ESP8266WiFi module I have is v1.0.0 from Ivan Grokhotkov. The Blynk library I am using is v 0.3.0 that I downloaded from GitHub today.

I can compile and run the Adafruit examples from their tutorial, but when I try to run the ESP8266_Standalone sketch I get errors which I have appended below.

Arduino: 1.6.5 (Mac OS X), Board: “Adafruit HUZZAH ESP8266, 80 MHz, 115200”

Build options changed, rebuilding all
In file included from /Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkSimpleEsp8266.h:18:0,
from ESP8266_Standalone.ino:30:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkApiArduino.h:96:6: warning: #warning “analogInputToDigitalPin not defined => Named analog pins will not work” [-Wcpp]
#warning “analogInputToDigitalPin not defined => Named analog pins will not work”
^
In file included from /Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkApi.h:15:0,
from /Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkApiArduino.h:14,
from /Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkSimpleEsp8266.h:18,
from ESP8266_Standalone.ino:30:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkDebug.h: In function ‘void blynk_dbg_print(const char*, …)’:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkDebug.h:101:50: error: ‘vsnprintf’ was not declared in this scope
vsnprintf(buff, sizeof(buff), fmt, ap);
^
In file included from /Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkApi.h:16:0,
from /Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkApiArduino.h:14,
from /Users/paultravers/Documents/Arduino/libraries/blynk-library/BlynkSimpleEsp8266.h:18,
from ESP8266_Standalone.ino:30:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h: In member function ‘void BlynkParam::add(int)’:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:229:61: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%i”, value)+1;
^
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h: In member function ‘void BlynkParam::add(unsigned int)’:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:235:61: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%u”, value)+1;
^
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h: In member function ‘void BlynkParam::add(long int)’:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:241:62: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%li”, value)+1;
^
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h: In member function ‘void BlynkParam::add(long unsigned int)’:
/Users/paultravers/Documents/Arduino/libraries/blynk-library/Blynk/BlynkParam.h:247:62: error: ‘snprintf’ was not declared in this scope
len += snprintf(buff+len, buff_size-len, “%lu”, value)+1;
^

Hi … the problem is solved … I am not sure exactly the cause, but I reloaded the IDE and rebooted the computer, and now the sketch compiles correctly and - even better - works!

Thanks for your time to consider this problem

Paul