capcom6 / android-sms-gateway

The SMS Gateway for Androidâ„¢ app enables sending and receiving SMS messages through an API that can be accessed directly on the device or via a cloud server when direct device access is not possible.
https://sms-gate.app
Apache License 2.0
201 stars 53 forks source link

same phone as sms and wifi gateway/router works! #52

Closed hmollercl closed 5 months ago

hmollercl commented 6 months ago

Amazing program. I'm just here to tell that if you want to use the same phone as sms gateway and wifi gateway/router, it works, although this program does not tell you the local ip. My use case is that I need to send sms message even when electricity fail so I need wifi network to be active (and sms gateway to) this is easier if one device do it all and for that using the same phone is ideal.

Activate tethering on the phone and connect to the wifi network the phone create. The only "issue" is that android-sms-gateway don't tell you the local IP so you need to discover it. In esp I use WiFi.gatewayIP().toString(); from #include <WiFi.h> after I connect to the phone wifi network.

capcom6 commented 6 months ago

Hello!

Thank you for sharing your experience with the project! With regard to discovering the local IP in tethering mode, I'll certainly look into it.