public class GatewayApi extends Object
Constructor and Description |
---|
GatewayApi() |
Modifier and Type | Method and Description |
---|---|
void |
add(GatewayConfig gatewayConfig) |
void |
delete(List<Integer> ids) |
void |
disable(List<Integer> ids) |
void |
enable(List<Integer> ids) |
void |
executeNodeDiscover(List<Integer> ids) |
void |
executeNodeInfoUpdate(List<Integer> ids) |
GatewayConfig |
get(HashMap<String,Object> filters) |
GatewayConfig |
get(Integer gatewayId) |
QueryResponse |
getAll(HashMap<String,Object> filters)
Gives list of gateways with filter
|
QueryResponse |
getAllRaw(HashMap<String,Object> filters) |
GatewayConfig |
getGateway(GatewayTable gatewayTable) |
GatewayTable |
getRaw(Integer gatewayId) |
EngineStatistics |
getStatistics(Integer gatewayId) |
void |
reload(List<Integer> ids) |
void |
update(GatewayConfig gatewayConfig) |
public QueryResponse getAll(HashMap<String,Object> filters)
Filter(s):
name - List
of gateway names
networkType - MySensors
type - Serial, Ethernet, MQTT
state - Up, Down, Unavailable
Page filter(s):
pageLimit - Set number of items per page
page - Request page number
order - Set order. Option: asc, desc
orderBy - column name for order. Options: name, networkType, type, state, enabled, statusMessage
filters
- refer Filter(s)public GatewayConfig getGateway(GatewayTable gatewayTable)
public EngineStatistics getStatistics(Integer gatewayId)
public GatewayConfig get(HashMap<String,Object> filters)
public GatewayTable getRaw(Integer gatewayId)
public QueryResponse getAllRaw(HashMap<String,Object> filters)
public GatewayConfig get(Integer gatewayId)
public void add(GatewayConfig gatewayConfig)
public void update(GatewayConfig gatewayConfig)
public void executeNodeDiscover(List<Integer> ids) throws McBadRequestException
McBadRequestException
public void executeNodeInfoUpdate(List<Integer> ids) throws McBadRequestException
McBadRequestException
Copyright © 2015–2019. All rights reserved.