Relative Humidity and Temperature data on Web with https Μετρήσεις σχετικής υγρασίας και θερμοκρασίας στο δίκτυο με https
#include <WiFi.h> #include <WiFiClientSecure.h> #include <HTTPClient.h> #include <DHT.h> #include <ArduinoJson.h> // WiFi credentials Put your own wifi values below const char * ssid = "xxxxxxxxxxxxxxxxx" ; const char * password = "xxxxxxxxxxxxxxxxxx" ; // Server details - USE HTTPS with the correct URL // Use the exact address of the receiving php script const char * serverURL = "https://*******************" ; // Root Certificate for your domain - REPLACE WITH YOUR CERTIFICATE const char * root_ca = \ "-----BEGIN CERTIFICATE-----\n" \ "MIIGIjCCBQqgAwIBAgISBVPl+mMmdTdH9OqNeC4ajXNtMA0GCSqGSIb3DQEBCwUA\n" \ "MDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQwwCgYDVQQD\n" \ "EwNSMTMwHhcNMjUwOTI5MDQyMjI5WhcNMjUxMjI4MDQyMjI4WjAgMR4wHAYDVQQD\n" \ "ExV3ZWJkaXNrLm1lZ2FrYXN0cm8uZ3IwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw\n" \ "ggEKAoIBAQDSeKYkxn8e0J859W6igXo6agyKuo4UFT...