Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By xtal
#37923 got the parsing working with checking ..
those #$%@#$@ if/else/else if ... {} brackets are a bitch

Thinking about how to do serial , however current code is stopping over night,, suspect
memory slowing disappearing [LEAK]

How do I check for available memory ? freeMem is not good cmd ?
I only have 1 include #include <ESP8266WiFi.h>
do I need another ?

TIME for SCORPION.....will continue tommorrow thx in advance...mike
User avatar
By xtal
#37978 added --> #include "user_interface.h"
added--> int heap;
added--> heap = system_get_free_heap_size();
Getting this during compile------------ What is it telling me ?

Arduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck"

wifi-web-servag.ino.cpp.o: In function `__static_initialization_and_destruction_0':
C:\ Arduino1.6.5/wifi-web-servag.ino.ino:25: undefined reference to `system_get_free_heap_size()'
wifi-web-servag.ino.cpp.o:(.text.setup+0x43): undefined reference to `system_get_free_heap_size()'
collect2.exe: error: ld returned 1 exit status
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.