ThingerEthernet.h won't compile for Arduino Uno with ethernet shield

Following simple example coming from the thinger.io documentation(http://docs.thinger.io/arduino/) won’t compile.

#include <SPI.h>
#include <Ethernet.h>
#include <ThingerEthernet.h>

ThingerEthernet thing("username", "deviceId", "deviceCredential");

void setup() {
}

void loop() {
  thing.handle();
}

Compile error:

custom/thinger.io/src/thinger/thinger_resource.hpp:374:1: error: expected declaration before ‘}’ token}

When I select another board is compiles with succes but for the Arduino uno is won’t.

i think this part of code is missing

#define USERNAME “your_username”
#define DEVICE_ID “your_device_id”
#define DEVICE_CREDENTIAL “your_device_credential”

No, that didn’t help. Still the same error.

Hello @Bari,

It is better to use the library example code at Arduino>Examples>Thinger.io>Arduino>ArduinoEthernet

It is recommendable to check the forum searching if there is not a thread with our particular issue, before starting a new one

Hope this helps

I did found that thread but the first 2 attempts trying their solution didn’t helped me. But after finding no other solutions I tried it again with succes!

Thanks for the help!