Error when trying to use the thingspeak-arduino ESP32 Eaxmples - WriteSingl​eFieldSecu​re.ino

10 次查看(过去 30 天)
When I try compile and run the example file
WriteSingleFieldSecure.ino
I get the following error:
Compilation error: 'WiFi' was not declared in this scope
If I add
#include <WiFi.h>
at the top, it compiles but the code does not work.
This is the output I get:
09:41:36.694 -> WARNING: This library doesn't support SSL connection to ThingSpeak. Default HTTP Connection used.
09:41:36.831 -> Attempting to connect to SSID: My-SSID
09:41:36.831 -> .
09:41:41.838 -> Connected.
09:41:41.884 -> Problem updating channel. HTTP error code -301
09:42:01.864 -> Problem updating channel. HTTP error code -301
Additionally I tried the example file
WriteMultipleFieldsSecure.ino
but got similar results.
I would like to be able to write fields securely to ThingSpeak using ESP32. How do I do this?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Write Data to Channel 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by