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
.
- LILYGO T-SIM7000G
- Nano SIM card with SMS plan
- Optional: 18650 battery
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>"}'
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>"