Answer the question
In order to leave comments, you need to log in
How to send API commands via SMS?
I am setting up an automatic broadcast of the radio station, everything is fine with this - naturally this is not the question.
The software that I use for automation can send and receive API commands for certain actions.
I have already managed to send SMS to me in case of any emergency situations.
Now, I want to set up the following:
I send a certain SMS to a certain number, and then the specified action is performed.
Let's say:
I sent SMS "start" - and the gateway executed the API specified for this command
. Sent "stop" - the gateway executed the API specified for the command received by SMS.
Google did not help, everywhere it's just how to send SMS to the phone via api.
Does anyone know how I can implement this?
upd:
I have already set up sending notifications to myself.
Program, RadioBOSS.
When the silence detector is triggered, an HTTP GET request is sent in which an SMS message is already programmed to my number that the silence detector has triggered.
Also, RadioBOSS accepts API commands for control.
Playlist generation, start stop next track previous, etc.
And I want to implement:
What would I send SMS, which eventually became an API request to RadioBOSS so that it would execute pre-programmed commands
PS: I already found an interesting sms server tools software, but I still can’t really understand - I can manage to implement my plan with it or not
Answer the question
In order to leave comments, you need to log in
Подключаете сотовый телефон к COM-порту (или эмулятору) и взаимодействуете с SMS как с обычным терминалом - отправить SMS - команда AT+CMGS, на получение - приходит событие в определенном формате. В свое время было множество программ, автоматизирующих общение с терминалом, в том числе позволяющие писать макросы и запускать внешние приложения по результатам приходящих данных (навскидку помню TeraTerm, поскольку ей пользовался, но на самом деле аналогов - масса). Это конечно низкоуровневое решение, возможно, есть более простой и удобный для Вашей задачи путь.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question