Skip to content

Instantly share code, notes, and snippets.

@CircuitDigest
Created September 20, 2024 09:03
Show Gist options
  • Select an option

  • Save CircuitDigest/68de36fb04857a05d931d7905c32ba66 to your computer and use it in GitHub Desktop.

Select an option

Save CircuitDigest/68de36fb04857a05d931d7905c32ba66 to your computer and use it in GitHub Desktop.
// Libraries for WiFi, Secure Client, and Camera functionalities
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClientSecure.h>
#include <WebServer.h>
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#include "esp_camera.h"
#include <NTPClient.h>
#include <WiFiUdp.h>
#include <ESP32Servo.h>
// WiFi credentials and server information
const char* ssid = "xxx"; // Replace xxx with your WiFi SSID
const char* password = "xxx"; // Replace xxx with your WiFi Password
String serverName = "www.circuitdigest.cloud"; // Replace with your server domain
String serverPath = "/readnumberplate"; // API endpoint path "/readqrcode" or "/readnumberplate"
const int serverPort = 443; // HTTPS port
String apiKey = "xxx"; // Replace xxx with your API key
String imageViewLink = "https://www.circuitdigest.cloud/static/" + apiKey + ".jpeg";
#define flashLight 4 // GPIO pin for the flashlight
int count = 0; // Counter for image uploads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment