#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...
Ενημερωμένος κώδικας για σχολικό κουδούνι /* Modified on Nov 24, 2020 Modified by MehranMaleki from Arduino Examples Modified by Panagiotis Toumpaniaris on March 3,2024 */ #include <EEPROM.h> #include <Keypad.h> #include <Wire.h> #include <DS1307RTC.h> #include <LiquidCrystal_I2C.h> #include <TimeLib.h> LiquidCrystal_I2C lcd ( 0x 27 , 16 , 2 ) ; // I2C address 0x27, 16 column and 2 rows const char * monthName [ 12 ] = { "Jan" , "Feb" , "Mar" , "Apr" , "May" , "Jun" , "Jul" , "Aug" , "Sep" , "Oct" , "Nov" , "Dec" } ; tmElements_t tm; const int ROW_NUM = 4 ; // four rows const int COLUMN_NUM = 4 ; // four columns char keys [ROW_NUM][COLUMN_NUM] = { { '1','2','3', 'A' } , { '4','5','6', 'B' } , { '7','8','9', 'C...