Skip to content

svedev0/tiny-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

tiny-gateway

A WIP lightweight SMS gateway for the LILYGO T-SIM7000G. It allows sending SMS messages via a simple HTTP API.

Currently, the API can only be reached via the WiFi access point running on the ESP32 at 192.168.4.1.

Hardware requirements

  • LILYGO T-SIM7000G
  • Nano SIM card with SMS plan
  • Optional: 18650 battery

API usage

Send SMS

POST /send-sms
Authorization: Bearer <TOKEN>
Content-Type: text/plain

{
	"recipient": "<PHONE_NUMBER>",
	"message": "<MESSAGE>"
}

Or in Bash using curl:

curl http://192.168.4.1/send-sms \
	-X POST \
	-H 'Authorization: Bearer <TOKEN>' \
	-H 'Content-Type: text/plain' \
	--data '{"recipient":"<PHONE_NUMBER>","message":"<MESSAGE>"}'

Configuration

In the globals.h file, update this line with your APN:

#define APN (char*)"<APN>"

Optionally, the HTTP server and WiFi access point can also be customised:

#define AP_SSID     (char*)"<SSID>"
#define AP_PASSWORD (char*)"<PASSWORD>"

#define HTTP_AUTH_TOKEN (char*)"<TOKEN>"

About

📡 A lightweight SMS gateway for the LILYGO T-SIM7000G

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published