Requirements
    ====================
    
    1. Gate Open & Close process based on Arduino Uno Board
    2. After opened the gate, gate will be automatically close with in 30 seconds.
    3. While gate closing at the time, should check through sensor
    4. Need Offline gate access through Arduino rfid card
    
    

User Authentication


        https://app.arduino.cc

        marurasanthaicbe@gmail.com
        wS+rM4=,K#2Q
    

Demo

        Click here 
    

RFID CARD (arduino)

        GET Method

        https://parking.marura.in/api/v1/default/get-offline-rfid-data?uid=7fccb8a5-97d9-4ba0-97ea-bd8c3e21b96d
        {
            "ResponseCode": "200",
            "Result": true,
            "ResponseMsg": "Get Offline RFID",
            "ResultData": {
                "Message": "Gate Access Allowed"
            }
        }
    
        POST Method
        
        https://parking.marura.in/api/v1/default/set-offline-rfid-data?uid=7fccb8a5-97d9-4ba0-97ea-bd8c3e21b96d
        {
            "ResponseCode": "200",
            "Result": true,
            "ResponseMsg": "Offline RFID",
            "ResultData": {
                "Message": "Data successfully written "
            }
        } 
    

C++

        #include <WiFiClient.h> // or EthernetClient.h
        #include <ESP8266WiFi.h> // or Ethernet.h 

        void sendRfidData(String rfidUID) {
            WiFiClient client; // or EthernetClient client;
            const char* host = "https://parking.marura.in/";
            int port = "";

            if (!client.connect(host, port)) {
                Serial.println("Connection failed");
                return;
            }

            String payload = "uid=" + rfidUID;
            client.print("POST api/v1/default/set-offline-rfid-data HTTP/1.1\r\n");
            client.print("Host: ");
            client.print(host);
            client.print("\r\n");
            client.print("Content-Type: application/x-www-form-urlencoded\r\n");
            client.print("Content-Length: ");
            client.print(payload.length());
            client.print("\r\n\r\n");
            client.print(payload);

            // ... read response ...
            client.stop();
        }

        void loop() {
            if (/* RFID tag detected */) {
                String uid = "your_detected_uid"; // Get UID from RFID module
                sendRfidData(uid);
            }
        }
    

RFID SLOT DETAILS (arduino)

Slot title Slot Unique Id
Slot 1 7fccb8a5-97d9-4ba0-97ea-bd8c3e21b96d
Slot 2 880c30b8-99bf-42a8-bec3-310727281eb2
Slot 3 c85b344d-bcea-4ca5-8e1e-d228def1cc9f
Slot 4 ef6815df-c8bf-4b94-8ad5-68eb5fa142fc
Slot 5 bf923c82-7c33-4c5a-bcb6-62793020bda1
Slot 6 7038c42f-f454-4f98-8926-e4f6c170d4eb
Slot 7 062b9d5a-5141-41a0-8bad-f2ce8864c70e
Slot 8 14794885-cc8d-471a-92ef-7456f6bc0444
Slot 9 f4f9f0bb-64da-4c25-8256-86a0941464f2
Slot 10 457b99e2-30bd-47fa-8710-71d4a44d407d
Slot 11 e99a9f07-95c6-4af7-9313-47a3df172947
Slot 12 b1a00ce0-ef1b-432e-aaa6-eef751fbc360
Slot 13 f26d9aec-5bc5-4aaf-867f-cc020573a7ab
Slot 14 5f9cfd24-24d6-4e75-9988-eeeaa954a0a8
Slot 15 4d5be5b5-bcc4-412f-9e04-779241d00c73
Slot 16 b85fa0a6-f196-4939-9fe9-f9e144f8c4df
Slot 17 5819ad7a-3770-4b05-ba6e-a90d5cf1c02f
Slot 18 02e81fe0-b9e5-4b22-b747-ddd1b5ae133f
Slot 19 30866626-b828-4019-8932-8a65897b08d4
Slot 20 7f39960b-d9b2-4182-9cbd-be1bd3aee282
Slot 21 f38fa7c7-f515-4fba-baf7-42454a027e2c
Slot 22 8b64d1ba-2869-444f-b340-4eb033a337e9
Slot 23 bd4ab872-2524-4194-a76d-03d83a5a5473
Slot 24 65db4474-7e59-45ea-a954-9d84f564d336
Slot 25 d3735898-454a-4ce2-bffa-a581ef46d9a7
Slot 26 fb5c7c27-c725-44c8-89ea-e9daea9bd5dc
Slot 27 d5f9703f-4b7d-4853-b6db-42b5914bcbb5
Slot 28 a4fcaa11-c465-4952-9cd6-aa76dd05f16e
Slot 29 93de9642-ea49-41b8-8e45-5f57924821ba
Slot 30 f31855f7-2ad7-461f-9089-8d65cb4490f9