ThingSpeak.h library does not support Arduino Uno WiFi Rev2 | Arduino | Forum

Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
ThingSpeak.h library does not support Arduino Uno WiFi Rev2
No permission to create posts
January 29, 2019
2:44 am
Avatar
mac

Silver
Members
Forum Posts: 15
Member Since:
August 10, 2017
sp_UserOfflineSmall Offline

The specs for Uno WiFi Rev2 imply that it is very similiar to other Uno's with wifi.

These notes are from the Arduino web site
WiFiNINA.h
This library allows you to use the Arduino UNO WiFi Rev.2, Arduino MKR 1010 and Arduino MKR VIDOR 4000 WiFi capabilities. It can serve as either a server accepting incoming connections or a client making outgoing ones. The library supports WEP and WPA2 Personal encryption. This library support all the same methods of the original WiFi library plus the connectSSL(). The WiFiNINA library is very similar to the Ethernet and the library WiFi, and many of the function calls are the same.

Using the WiFiNINA.h library only and writing to ThingSpeak using the Thingspeak example json code to Bulk upload works fine, but it only uploads one field.

ThingSpeak.h does not (yet?) have any code references to enable UnoWiFi Rev2 and the Arduino IDE produces a error Message "Platform not supported"

It would be helpful if ThingSpeak.h was revised to support the Uno WiFi Rev2 as it is a convenient solution to multiple field uploads.
How can this be implemented?

January 29, 2019
8:35 am
Avatar
JasonW

MathWorks
Members
Forum Posts: 51
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

The ThingSpeak library is compatible with the Uno WiFi Rev2 and WiFiNINA . We are just missing an example specific for Uno WiFi Rev2.

I don't have a Rev2 to test with, but the I think the MKR1010 examples should work for the Uno WiFi Rev2. Just make sure to choose the correct board in the IDE: Arduino Uno WiFi Rev2

Let us know if it works.

January 29, 2019
10:31 am
Avatar
mac

Silver
Members
Forum Posts: 15
Member Since:
August 10, 2017
sp_UserOfflineSmall Offline

This is the complete IDE compile error message

WARNING: library thingspeak-arduino-master claims to run on (avr, esp8266, sam, samd) architecture(s) and may be incompatible with your current board which runs on (megaavr) architecture(s).
In file included from /Users/mack/Documents/Arduino/UnoWiFi_R2/UnoWiFi_R2_Write_Multiple_Fields/UnoWiFi_R2_Write_Multiple_Fields.ino:26:0:
/Users/mack/Documents/Arduino/libraries/thingspeak-arduino-master/src/ThingSpeak.h:61:4: error: #error Only Arduino MKR1000, Yun, Uno/Mega/Due with either WiFi101 or Ethernet shield. ESP8266 also supported.
#error Only Arduino MKR1000, Yun, Uno/Mega/Due with either WiFi101 or Ethernet shield. ESP8266 also supported.
^
/Users/mack/Documents/Arduino/libraries/thingspeak-arduino-master/src/ThingSpeak.h:84:3: error: #error "Platform not supported"
#error "Platform not supported"
^
exit status 1
Error compiling for board Arduino Uno WiFi Rev2.

January 29, 2019
1:27 pm
Avatar
JasonW

MathWorks
Members
Forum Posts: 51
Member Since:
October 21, 2016
sp_UserOfflineSmall Offline

Can you update your ThingSpeak library and try again? Version 1.4.0 and up has the newer examples.

I was able to get it to compile by using the MKR1010 examples while set to Arduino Uno WiFi Rev2.

January 29, 2019
9:17 pm
Avatar
mac

Silver
Members
Forum Posts: 15
Member Since:
August 10, 2017
sp_UserOfflineSmall Offline

Thanks Library now updated to 1.4.3 and IDE compiles OK

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
33 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

porosh2019, KellyBrise, sunainakhanna, flail, sathwik, samlewis02

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457