Skip to content

Websocket Protocol

Thomas Gatzweiler edited this page Mar 22, 2017 · 9 revisions

Commands

{"SetConfig": config}

Update the configuration.

"DefaultConfig"

Reset the configuration to the default.

{"SendMessage": {"addr": 12345, "data": "Message Content"}}

Send an alphanumeric POCSAG message to the specified address.

"GetConfig"

Get the current configuration.

"GetVersion"

Get the version of UniPager.

"GetStatus"

Get the current status.

"Shutdown"

Shutdown UniPager.

"Restart"

Restarts the connection and the scheduler.

Responses

Status

Fields

Name Type Description
connected boolean true if UniPager is connected to the master
transmitting boolean true if UniPager is currently transmitting
timeslots [boolean] The time slot configuration

Example

{
  "Status": {
    "connected": true,
    "transmitting": false,
    "timeslots": [false, false, true, true, false, false, true, false,
                  false, false, false, false, true, true, false, true]
  }
}
Clone this wiki locally