Bari
May 17, 2019, 7:25am
1
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”
Bari
May 19, 2019, 6:34pm
3
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
ega
May 23, 2019, 4:52pm
5
It is recommendable to check the forum searching if there is not a thread with our particular issue, before starting a new one
Hello,
I’m trying to test out some of the thinger examples on an Uno with either an ethernet shield or a cc3000. Having changed nothing but the username, device_id and device_credential, the sketches fail to compile. I was able to successfully test a sketch for a nodeMCU. Oddly enough, when I accidentally compiled one of the Uno sketches while the nodeMCU device was still selected the sketch compiled. I’m not sure what I’m missing here.
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Boa…
Hope this helps
Bari
May 29, 2019, 9:49am
6
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!