Paramètres
Configuration API
Utilisez cette clé dans le firmware ESP32 pour l'authentification
Configurez cette URL dans le firmware ESP32
Documentation API
Envoyer un SMS
POST /api/sms/send
{"phone": "+225XXXXXXXX", "message": "Hello"}Historique SMS
GET /api/sms/history?direction=outgoing&page=1&limit=50Initier un appel
POST /api/calls/initiate
{"phone": "+225XXXXXXXX"}Exécuter USSD
POST /api/ussd
{"code": "#100#"}Statut des appareils
GET /api/device/statusConfiguration ESP32
Copiez cette configuration dans votre fichier main.cpp:
// Configuration WebSocket const char* WS_HOST = "votre-domaine.com"; const int WS_PORT = 443; const char* WS_PATH = "/device"; const char* API_KEY = "esp32-sms-gateway-api-key-2024"; const bool WS_SSL = true;