Hey everybody,
Looking for someone who has done some work with an esp32 wifi dev board. I cant get the simple code for mqtt to compile. I get error compiling for board heltec_wifi_kit_32. This is new territory for me. Just trying to connect for now.
Thanks,
William
#include <WiFiEsp.h>
#include <WiFiEspClient.h>
#include <WiFiEspServer.h>
#include <WiFiEspUdp.h>
#include <CayenneArduinoDefines.h>
#include <CayenneArduinoMQTTClient.h>
#include <CayenneHandlers.h>
#include <CayenneMessage.h>
//#include <CayenneMQTTEthernet.h>
//#include <CayenneMQTTEthernetClient.h>
//#include <CayenneMQTTEthernetW5200.h>
//#include <CayenneMQTTEthernetW5500.h>
#include <CayenneMQTTWiFi.h>
//#include <CayenneMQTTWiFi101.h>
#include <CayenneMQTTWiFiClient.h>
#include <CayenneMQTTYun.h>
#include <CayenneMQTTYunClient.h>
#include <DetectDevice.h>
#include <dummy.h>
#include <CayenneESP8266Shield.h>
char username = “0fd05b20-a6c5-11e6-839f-8b”;
char password = “e3d25bad21a57e27ccc6b081a76cb”;
char clientID = “9ac12a70-a89a-11e7-b177-”;
char ssid = “free”;
char password = “”;
void setup() {
// put your setup code here, to run once:
EspSerial.begin(115200);
Cayenne.begin(ssid,password);
delay(4000)
Cayenne.begin(username,password,clientID);
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino: 1.8.1 (Windows 10), Board: “Heltec_WIFI_Kit_32, 80MHz, 512000”
Build options changed, rebuilding all
C:\Users\Pancho\Documents\Arduino\libraries\arduino_716846\src\utility\EspDrv.cpp:20:26: fatal error: avr/pgmspace.h: No such file or directory
compilation terminated.
Multiple libraries were found for “CayenneArduinoDefines.h”
Used: C:\Users\Pancho\Documents\Arduino\libraries\arduino_90267
Not used: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-Arduino
Not used: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-Arduino
Not used: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-Arduino
Not used: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-Arduino
Multiple libraries were found for “WiFi.h”
Used: C:\Users\Pancho\Documents\Arduino\hardware\espressif\esp32\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
Error compiling for board Heltec_WIFI_Kit_32.
Invalid library found in C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-mbed: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-mbed
Invalid library found in C:\Users\Pancho\Documents\Arduino\libraries\OLED-128x64-ssd1306-SPI-Tests: C:\Users\Pancho\Documents\Arduino\libraries\OLED-128x64-ssd1306-SPI-Tests
Invalid library found in C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-mbed: C:\Users\Pancho\Documents\Arduino\libraries\Cayenne-MQTT-mbed
Invalid library found in C:\Users\Pancho\Documents\Arduino\libraries\OLED-128x64-ssd1306-SPI-Tests: C:\Users\Pancho\Documents\Arduino\libraries\OLED-128x64-ssd1306-SPI-Tests
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.