Hi,
I am using a TinyDuino and a TinyShield WIFI CC3000. The problem I am having is that just the basic Blynk libraries and functions are taking practically all my program storage space of 30k bytes of flash and 2K dynamic.
Take an example the minimum blynk code sample below takes me to:
- Commenting everything in the setup and loop functions: 12,328b (40%) - (29% dynamic)
- Enabling Blynk.begin at setup: 16,722b (54%) - (44% dynamic)
- Enabling Blynk.run at the loop: 20,634 (67%) - (46% dynamic)
And this is with BlynkPrint disabled or that would push me at almost 80% of program storage consumed.
I am not even doing any write or read actions or have any other code and my Arduino is practically full. My intended project consists of using 4 different TinyShield sensors along with Blynk but just adding one sensor and its related library plus logic is filling my memory completely. Before adding Blynk I could have all the code of the project for all the sensors a TinyScreen and libraries and not go over 70% of space.
Are there any plans around optimizing space consumption? Any ideas on how I can lower the flash footprint of the Blynk libraries or the CC3000?
// Pin definitions for the TinyCircuits WiFi TinyShield
#define ADAFRUIT_CC3000_IRQ 2
#define ADAFRUIT_CC3000_VBAT A3
#define ADAFRUIT_CC3000_CS 8
//#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Adafruit_CC3000.h>
#include <BlynkSimpleCC3000.h>
//char auth[] = "************";
void setup()
{
Serial.begin(115200);
Blynk.begin(auth, "SSID", "PASS", WLAN_SEC_UNSEC);
}
void loop()
{
Blynk.run();
}