#define CAYENNE_DEBUG // Uncomment to show debug messages Virtual Channel data are under the Basics folder. Should be sent to those channels using virtualWrites. If the widgets use Virtual Channels, data Send data on those pins to the Cayenne server. Connect to AT console and call:įor Cayenne Dashboard widgets using digital or analog pins this sketch will automatically NOTE: Ensure a stable serial connection to ESP8266!įirmware version 1.0.0 (AT v0.22) or later is needed. My Documents\Arduino\libraries\Cayenne\extras\libraries) to compile this example. ZIP Library)įrom the Cayenne extras/libraries folder (e.g. You should install the ESP8266HardwareSerial.zip library via the Arduino IDE (Sketch->Include Library->Add. This sketch connects to the Cayenne server using an ESP8266 WiFi module as a shield connected You can try adding a second serial port with the software serial library if you want to keep debug, but note that the UNO doesn’t have much program space if you plan on adding more user code.Īdapted from Blynk's ESP8266_Shield_HardSer Example Just note when programming that you disconnect the ESP from the UNO so there are no confilcts, then reconnect after programming. They are the ones labelled RX and TX on the board. You don’t need to define pins as it is knows them already. Hi don’t have a separate serial port on the UNO, so you need to disable the debug port and use Serial to connect to the ESP shield. Where I define the rx and tx pins to serial between UNO + ESP? But I´m not sure how I should use it… maybe I miss some detail! I also install the library ESP8266HardwareSerial.zip like you said, I got 3 files “ESP8266.cpp”, “ESP8266_HardSer.h” and the “README.md”. This should be obtained from the Cayenne Dashboard. #define CAYENNE_PRINT Serial // Comment this out to disable prints and save space With the code you post, I will have the error: “‘Serial1’ was not declared in this scope” //#define CAYENNE_DEBUG // Uncomment to show debug messages I done exactly what you said, but I have some issue with the serial between UNO and the ESP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |