Closed mrwattdiy closed 4 years ago
Since you're using WiFiSecureClient, it needs to connect to port 443. If you used WiFiClient, port 80 is fine, as in v1.5.0 of the library.
The next version of the library will have the ability to use the WiFiSecureClient as well as the WiFiClient.
Hello, i checked that this module didn't work (error http -301), perheaps ThingSpeak changed something on api server:
I mdified lines 26 and 27 of ThingSpeak.h file from:
define THINGSPEAK_URL "api.thingspeak.com"
define THINGSPEAK_PORT_NUMBER 80
to:
define THINGSPEAK_URL "thingspeak.com"
define THINGSPEAK_PORT_NUMBER 443
My application instead:
include
WiFiClient client; WiFiClientSecure clientsecure;
void setup() { ... // Initialize ThingSpeak ThingSpeak.begin(clientsecure); ...
Sincerely, Simone C.