AWS Iot with Arduino Uno Wifi Rev2

Hey everyone,
I currently have an Arduino Uno Wifi Rev2, I would like to connect it to AWS Iot, so that it can receive messages from the cloud. From there I want to display that message unto a screen. I managed to get a liquid crystal library working to display info on the screen, but I tried following this tutorial to connect to AWS Iot and kept getting errors: https://docs.arduino.cc/tutorials/mkr-wifi-1010/securely-connecting-an-arduino-mkr-wifi-1010-to-aws-iot-core

WARNING: library ArduinoECCX08 claims to run on samd, megaavr, mbed, mbed_nano, mbed_portenta, esp32 architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
C:\Users\najib\Documents\Arduino\libraries\ArduinoECCX08\src\ECCX08.cpp: In member function 'int ECCX08Class::receiveResponse(void*, size_t)':
C:\Users\najib\Documents\Arduino\libraries\ArduinoECCX08\src\ECCX08.cpp:730:80: error: call of overloaded 'requestFrom(uint8_t, size_t, bool)' is ambiguous
   while (_wire->requestFrom((uint8_t)_address, (size_t)responseSize, (bool)true) != responseSize && retries--);
                                                                                ^
In file included from C:\Users\najib\Documents\Arduino\libraries\ArduinoECCX08\src\ECCX08.h:24:0,
                 from C:\Users\najib\Documents\Arduino\libraries\ArduinoECCX08\src\ECCX08.cpp:22:
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire\src/Wire.h:66:13: note: candidate: uint8_t TwoWire::requestFrom(uint8_t, uint8_t, uint8_t)
     uint8_t requestFrom(uint8_t, uint8_t, uint8_t);
             ^~~~~~~~~~~
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\libraries\Wire\src/Wire.h:69:13: note: candidate: uint8_t TwoWire::requestFrom(int, int, int)
     uint8_t requestFrom(int, int, int);
             ^~~~~~~~~~~
exit status 1
Error compiling for board Arduino Uno WiFi.

I guess it's a board issue? I don't mind using another library or even getting a board, but I would like something that can both connect to wifi, as well as connecting to a any liquid crystal type display library. Any suggestions?
Thanks :slight_smile:

Looks like the library doesn't support the ATmega4809 used in the Arduino UNO WiFi Rev2. Since the example you are following uses an "Arduino MKR WiFi 1010" then that might be a good choice for an alternative board.

1 Like

That is a megaAVR as far as I know. Am I mistaken?

1 Like

I don't know what I did, but I must have done something, I think it might be a board selection issue, but the Wifi rev 2 is indeed a megaAVR. Now I am getting an error on the sketch being too big and using up too much memory, but that's a different issue.
Thank you for your replies :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.