03-11-2025, 01:01 PM
MQTT:
Making a Call
{
"run_call": {
"phone": "+8612345678901"
}
}
Successful Response:
{
"run_call": {
"value": "success"
}
}
Failed Response:
Possible reasons: GPRS is not initialized, or the phone number is not set.
{
"run_call": {
"value": "error"
}
}
--------------------------------
Sending an SMS
{
"run_sms": {
"content": "sms content example",
"phone": "+8612345678901"
}
}
Successful Response:
{
"run_sms": {
"value": "success"
}
}
Failed Response:
Possible reasons: GPRS is not initialized, the phone number is not set, or the SMS content is not set.
{
"run_sms": {
"value": "error"
}
}
--------------------------------
MQTT STATE Reporting Received SMS and Incoming Calls
Incoming Call
{
"call_ring": {
"phone": "+8612345678901"
}
}
Received SMS
{
"sms_recv": {
"phone": "+8612345678901",
"content": "example"
}
}
Making a Call
{
"run_call": {
"phone": "+8612345678901"
}
}
Successful Response:
{
"run_call": {
"value": "success"
}
}
Failed Response:
Possible reasons: GPRS is not initialized, or the phone number is not set.
{
"run_call": {
"value": "error"
}
}
--------------------------------
Sending an SMS
{
"run_sms": {
"content": "sms content example",
"phone": "+8612345678901"
}
}
Successful Response:
{
"run_sms": {
"value": "success"
}
}
Failed Response:
Possible reasons: GPRS is not initialized, the phone number is not set, or the SMS content is not set.
{
"run_sms": {
"value": "error"
}
}
--------------------------------
MQTT STATE Reporting Received SMS and Incoming Calls
Incoming Call
{
"call_ring": {
"phone": "+8612345678901"
}
}
Received SMS
{
"sms_recv": {
"phone": "+8612345678901",
"content": "example"
}
}