I am writing a program for the Spark Core. It (1) fetches a text file from an URL, (2) extracts parts from every line, and (3) should blink some attached LEDs accordingly. I just started with part 3.
Now every time I add a simple
pinMode(D0, OUTPUT); to the code and update the firmware accordingly, it sends the board to SOS panic mode, with eight blinks (#8 Out of heap memory). The actual code does not run.
Why does the addition of pinmode prevents my sketch from running? What can I do to fix it?
UPDATE: Reduced buffer size in Http Client library to 512, now it works. Considering to use REST client lib instead of Http Client.