public class MP1Device extends BLDevice
DEFAULT_BYTES_SIZE, DEFAULT_TIMEOUT, DESC_A1, DESC_FLOUREON, DESC_HYSEN, DESC_MP1, DESC_RM_2, DESC_RM_2_2HOME_PLUS_GDT, DESC_RM_2_HOME_PLUS, DESC_RM_2_PRO_PLUS, DESC_RM_2_PRO_PLUS_2, DESC_RM_2_PRO_PLUS_2_BL, DESC_RM_MINI, DESC_RM_MINI_SHATE, DESC_RM_PRO_PHICOMM, DESC_SP1, DESC_SP2, DESC_SP2_HONEYWELL_ALT1, DESC_SP2_HONEYWELL_ALT2, DESC_SP2_HONEYWELL_ALT3, DESC_SP2_HONEYWELL_ALT4, DESC_SP3, DESC_SPMINI, DESC_SPMINI_OEM_ALT1, DESC_SPMINI_OEM_ALT2, DESC_SPMINI_PLUS, DESC_SPMINI2, DESC_UNKNOWN, DEV_A1, DEV_FLOUREON, DEV_HYSEN, DEV_MP1, DEV_RM_2, DEV_RM_2_2HOME_PLUS_GDT, DEV_RM_2_HOME_PLUS, DEV_RM_2_PRO_PLUS, DEV_RM_2_PRO_PLUS_2, DEV_RM_2_PRO_PLUS_2_BL, DEV_RM_MINI, DEV_RM_MINI_SHATE, DEV_RM_PRO_PHICOMM, DEV_SP1, DEV_SP2, DEV_SP2_HONEYWELL_ALT1, DEV_SP2_HONEYWELL_ALT2, DEV_SP2_HONEYWELL_ALT3, DEV_SP2_HONEYWELL_ALT4, DEV_SP3, DEV_SPMINI, DEV_SPMINI_OEM_ALT1, DEV_SPMINI_OEM_ALT2, DEV_SPMINI_PLUS, DEV_SPMINI2, DISCOVERY_DEST_PORT, DISCOVERY_RECEIVE_BUFFER_SIZE, INITIAL_IV, INITIAL_KEY, log| Modifier | Constructor and Description |
|---|---|
protected |
MP1Device(short deviceType,
String deviceDesc,
String host,
Mac mac)
Generic way to create a MP1Device
|
|
MP1Device(String host,
Mac mac)
Creates a MP1Device client instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getStateByIndex(int index) |
boolean[] |
getStates() |
void |
setState(int sid,
boolean state)
Set the power state
|
auth, auth, chgLen, close, createInstance, decryptFromDeviceMessage, discoverDevices, discoverDevices, discoverDevices, getAes, getDescOfType, getDeviceDescription, getDeviceType, getHost, getMac, getRawPayloadBytesPadded, removeNullsFromEnd, reverseBytes, sendCmdPkt, sendCmdPkt, sendCmdPkt, sendCmdPkt, sendPkt, sendPkt, subbytes, subbytesTillNullprotected MP1Device(short deviceType,
String deviceDesc,
String host,
Mac mac)
throws IOException
deviceType - Device TypedeviceDesc - Friendly device descriptionhost - The target Broadlink hostnamemac - The target Broadlink MAC addressIOException - Problems on constructing socketpublic MP1Device(String host, Mac mac) throws IOException
host - The target Broadlink hostnamemac - The target Broadlink MAC addressIOException - Problems on constructing socketCopyright © 2018. All rights reserved.