systemSetCommType

The method systemSetCommType() is called by the server hub to execute a communication type change on hub running the Remote Client.  If the mode are not supported, this call should return an error.

Function systemSetCommType
Purpose Sets communications to [http/socket/proxy].
Parameters
Name Type Description
params Map (Optional)
URL Format /system/setCommType/:type
HTTP Method GET - Incoming
HTTP Parameters
Name Type Description
type String Communication type. Valid values are: "http", "socket", "proxy"
Return JSON
Name Type Return Values
status String "success" if the communication type changed, or "error" on failure.

 

Note: This should re-trigger a reconnection to the server.

  • v2
  • 3664 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

deviceSendEvent

The method deviceSendEvent() is called by the server hub anytime an attribute value changes on...

devicesSaveAll

The method devicesSaveAll() is called by the server hub to save and create virtual, shadow copies...

getAllHSMStates

The method getAllHSMStates() is called by the server hub to retrieve the current list of Hubitat...

getAllModes

The method getAllModes() is called by the server hub to retrieve the current list of system modes...

getDeviceSync

The method getDeviceSync() is called by the server hub to retrieve the current state of all...