Skip to content

Alternative development for our basic security module based on ESP8266EX

Notifications You must be signed in to change notification settings

SafeVisionID/esp8266-dev

Repository files navigation

This contains ESP8266EX development as an alternative to latest official development. This hopes can be scale-up as implementation/requirement applied.

Based on ESP-Open-SDK which in turn based on Espressif's Non-OS SDK

To install required SDK:

  • Arch-Linux, available at AUR
  • Others, follow this guide

Fearture and To-Do list:

  • Basic LED Blink
  • UART Boot Info
  • UART Shell and Response/Callback
  • GPIO Interrupt (using Polling)
  • Basic HTTP Server
    • Basic HTML Response
    • Serial Out Response
    • Reset Request
    • R/W Integer/String in Flash
    • Receive Serial Request
  • Wifi Station mode
    • Config Password
    • Config SSID
  • Wifi SoftAP mode
    • Default IP, SSID, and Password
    • Config Station SSID and Password
    • Config Device ID
  • Switch Station and SoftAP
    • WiFi Status Indicator (LED GPIO2)
    • by HTTP Request
    • by GPIO pin
  • Sensor Interface
    • Magnet Switch
    • PIR (Cont-Trigger and 3v3)
    • Server Checking
    • Server Report
  • Sleep and WakeUp
    • by Sleep Time-Out
    • by Sensor Trigger
  • Power Manager Circuit
    • Battery (LiPO)
    • Regulator (AMS1117)
  • PCB
    • Main
    • Battery Regulator
  • Additional
    • ADC Interface

IoT API:

  • Test:

    • Debug Serial Command:
     apitest
    
    • URL:
     POST /sensor/test
    
    • HEADER:
     "Content-Type: application/json\r\n" \
     "Accept: application/json\r\n";
    
    • BODY:
     "{\n"\
     "\"testMessage\": \"connection\"\n" \
     "}\n";
    
    • RESPONSE:
     {
     "message": "Connected"
     }
    
  • Create:

    • Debug Serial Command:
     apicreate
    
    • URL:
     POST /sensor/test
    
    • HEADER:
     "Content-Type: application/json\r\n" \
     "Accept: application/json\r\n" \
     "x-access-token={TOKEN_STRING}\r\n" 
    
    • BODY:
     "{\n" \
     "\"id\": \"DEVICE_ID\",\n" \
     "\"jenis\": \"alarm\",\n" \
     "}\n";
    
    • RESPONSE:
     {
     "data": [],
     "_id": "SNSR0001",
     "jenis": "alarm",
     "status": "0",
     "username": "user2@gmail.com",
     "long": "3423480923.21",
     "lat": "2342830420938.22",
     "__v": 0
     }
    

Copyright (C) Wira ST MT

About

Alternative development for our basic security module based on ESP8266EX

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published