debsahu / ESP-MQTT-AWS-IoT-Core

Arduino examples of connecting ESP8266/ESP32 to AWS IOT Core
MIT License
118 stars 50 forks source link

What needs to be edited? something in the supporting libraries? #6

Closed adamaero closed 5 years ago

adamaero commented 5 years ago

I am trying to get the program to work with an esp8266 so I'm using this one: C:\Users\Adam\Documents\Arduino\ESP-MQTT-AWS-IoT-Core-master\ESP-MQTT-AWS-IoT-Core-master\Arduino\MQTT

Are there things that need to be changed in the supporting libraries? All I've changed is the secrets.h: image

I don't understand why this is happening. I downloaded the JSON library: C:\Users\Adam\Documents\Arduino\libraries\ArduinoJson-6.x

debsahu commented 5 years ago

It tells you to install a particular version of library that I've tested and confirmed that things work. I'm sure the newer versions would be fine, but at the time of writing this sketch ArduinoJson 6 was still in beta. I'll update the sketch to remove this restriction.

adamaero commented 5 years ago

All I've changed is secrets.h. It seems there is a bunch of things in MQTT that need to be changed like various keys.

debsahu commented 5 years ago

Are you on latest arduino-esp8266 core? BearSSL was introduced as default in core 2.5.0 and above.

debsahu commented 5 years ago

I just pushed updates that removes the ArduinoJson requirements, now all that is required is ArduinoJson v6.7.x or higher. Everything should compile on latest core: https://travis-ci.com/debsahu/ESP-MQTT-AWS-IoT-Core. All you need to connect to AWS are the values in secrets.h.

adamaero commented 5 years ago

I have Arduino IDE version 1.8.4... I put the latest Arduino core in my library folder.

debsahu commented 5 years ago

No not the IDE, esp8266 arduino core >> https://github.com/esp8266/Arduino

debsahu commented 5 years ago

Tools > Board > Boards Manager> Search "esp8266" > version 2.5.0 > Install/Update image

adamaero commented 5 years ago

Thank you very much. I had 3.4.1