How to send AT instructions by PHP
This article will explain in detail how PHP sends AT instructions. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Requirements: send text messages to the user's input mobile phone, requiring customized information content
Problem: there is no telecom cat, and SMS content cannot be customized using free api interface.
Solution: through the 4G network card, connect to the server, operate the network card through AT instructions, and send text messages
It is found that the AT quality transmission requires multiple coding of the information, and the transmission timeout, but the actual transmission is successful, the problem has not been completely solved.
The code is as follows: