Skip to content

Instantly share code, notes, and snippets.

@CircuitDigest
CircuitDigest / sensmsnodemcu.ino
Last active March 30, 2025 19:47
Send free SMS using CircuitDigest SMS API on NodeMCU, ESP32, ESP8266etc
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClientSecure.h> // Required for HTTPS connections
// Replace with your WiFi credentials
const char* ssid = "Semicon Media";
const char* password = "cracksen1605";
// Replace with your API Key
const char* apiKey = "yourapi"; //get api key from circuitdigest.cloud
@CircuitDigest
CircuitDigest / smsapitest.py
Last active February 2, 2026 12:20
Python Code to test CircuitDigest SMS API
import requests
# Define the API endpoint and API key
api_key = "your_api_key_here"
url = "https://www.circuitdigest.cloud/api/v1/send_sms?ID=101"
# Set the payload with the recipient's mobile number and dynamic variables
payload = {
"mobiles": "919876543210", # Replace with recipient's mobile number
"var1": "John Doe", # Replace with your first variable
// 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>
/*
* Smart Parking System using ESP32-CAM
*
* Features:
* - WiFi connectivity for communication with a remote server.
* - Secure HTTPS communication with the server using WiFiClientSecure.
* - Camera functionality to capture images for license plate recognition.
* - Integration with an NTP server for accurate timekeeping in Indian Standard Time (IST).
* - Real-time web server interface for monitoring parking system status.
* - Web page displays real-time information including current time, parking status, and captured images.
@CircuitDigest
CircuitDigest / esp32-webserver.ino
Created January 30, 2024 09:38
ESP32 webserver code to control LED using WiFi - CircuitDigest
// Load Wi-Fi library
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";
// Set web server port number to 80
WiFiServer server(80);