Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KCS v3 GSM MQTT protocol
#1
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"
  }
}
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)