This is the code:
#include <OneSheeld.h>
HttpRequest request ("https://blockchain.info/stats?format=json");
void setup() {
OneSheeld.begin();
request.getResponse().setOnJsonResponse(&onJson);
request.setOnFinish(&onFinish);
Internet.performGet(request);
}
void loop() {
}
void onFinish() {
request.getResponse()["market_price_usd"].query();
}
void onJson (JsonKeyChain & hell,char * res) {
Terminal.println(res);
OneSheeld.delay(10000);
Internet.performGet(request);
}
im using only the arduino and the one sheeld shield.
i get this error when upploading:
insuficient memory
29.886 bytes (92%) internal storage
2.115 bytes (103%) variables