-
Notifications
You must be signed in to change notification settings - Fork 27
Websocket Protocol
Thomas Gatzweiler edited this page Mar 10, 2018
·
9 revisions
Update the configuration.
Reset the configuration to the default.
Send an alphanumeric POCSAG message to the specified address.
Get the current configuration.
Get the version of UniPager.
Get the current status.
Shutdown UniPager.
Restarts the connection and the scheduler.
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 |
timeslot | number | The current time slot |
queue | number | The number of messages in the queue |
master | string | The master server UniPager is currently using |
version | string | UniPager version |
calls_tx | number | Total number of calls transmitted |
calls_rx | number | Total number of calls received |
{
"Status": {
"connected": true,
"transmitting": false,
"timeslots": [false, false, true, true, false, false, true, false,
false, false, false, false, true, true, false, true],
"timeslot": 14,
"queue": 42,
"master": "dapnet.afu.rwth-aachen.de",
"version": "1.0.0",
"calls_tx": 113252,
"calls_rx": 113252
}
}
A Status Update contains a list of fields that are a subset of the Status response. If there is status change, UniPager sends a status update which contains only the changed fields.
{
"StatusUpdate": ["timeslot", 11]
}
A Log response contains the log level and the log message.
{"Log":[3,"Connection established."]}