Hi - I’m using a Uno with a Wi-Fi shield connected to a Macbook Pro running 10.11.6. I’ve installed the IDE, and the Cayenne library. But it just doesn’t want to connect to the network. I’ve triple checked the Auth token, network SSID and password. I just can’t see any reason for the refusal to connect. Any suggestions would be massively welcome - I can’t want to start using Cayenne.
I’m new to Arduino but already had a few sketches I’d written myself work perfectly - the ubiquitous LED flasher, a stepper motor controller and a flame failure detector. These all just running on the Uno. Today is the first time I plugged the Wi-Fi shield in, specifically to get Cayenne up and running (I couldn’t quite make it work through the USB link to the computer). The shield is a Chinese clone - a manufacturer called Wang Tongze out of Beijing if that’s any help.
Unfortunately that didn’t work. Let me just check that I put the two files in the right place and renamed them correctly. Here’s a grab of my Cayenne directory: http://d.pr/i/dtOt.
I’m thinking I put these in the wrong place when I see the error log below…
Arduino: 1.8.2 (Mac OS X), Board: “Arduino Uno WiFi”
In file included from /Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/CayenneESP8266Shield.h:24:0,
from /Users/alanwoolhouse/Documents/Arduino/Install_sketch/Install_sketch.ino:24:
/Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/BlynkSimpleShieldEsp8266_HardSer.h:27:29: fatal error: ESP8266_HardSer.h: No such file or directory #include <ESP8266_HardSer.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Uno WiFi.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.
I have to run right now but I just tried what you suggested and I think we are now good - I’ll let you know. Thank you so much for your help Adam, I truly appreciate it and you’re a star.
Sorry it took a while to get back to you on this and thanks for the help so far. But unfortunately we are not yet good…
Here’s the error message when I attempt to upload. It’s clear that I have files in the wrong place but I just can’t work out where which files need to be to satisfy Arduino. I’m tempted to buy an Uno that isn’t “a different one” so that I can just follow the conventional instructions…
Arduino: 1.8.2 (Mac OS X), Board: “Arduino Uno WiFi”
In file included from /Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/CayenneESP8266Shield.h:24:0,
from /Users/alanwoolhouse/Documents/Arduino/Install_sketch/Install_sketch.ino:24:
/Users/alanwoolhouse/Documents/Arduino/libraries/Cayenne/BlynkSimpleShieldEsp8266_HardSer.h:27:29: fatal error: ESP8266_HardSer.h: No such file or directory #include <ESP8266_HardSer.h>
^
compilation terminated.
exit status 1
Error compiling for board Arduino Uno WiFi.
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.
I’m not sure where I downloaded it from originally, but I think I have the missing file from your compilation on my computer. The forum won’t let me attach a .zip so here is a Dropbox link: Dropbox - ESP8266HardwareSerial.zip - Simplify your life
Also, I’d make sure you have the correct board selected. The Arduino UNO WiFi is a different beast than using an Arduino UNO with a WiFishield to connect it.
Thanks rslegal but (unless I’ve done something inexplicably wrong) these are the same files I had uploaded. No matter, I tried uploading these to the same place in my file/folder structure and, nop, same result. I’m convinced I’m doing something stupid but can’t work out what.
I think I see what’s up here. Once you’ve downloaded the .zip file, you need to add it to the Arduino IDE by selecting Sketch > Include Library > Add .zip library and selecting that .zip file, no matter where you stuck it on your computer. Then the IDE should be able to see it during compilation.
If you’re using CayenneESP8266Shield.zip you’ll need to do the same with that .zip file as well.