Smart Home Automation Forum

Full Version: KCS v3 GSM MQTT protocol
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"
  }
}