Search in sources :

Example 1 with PairPongMsg

use of org.openhab.binding.maxcul.internal.messages.PairPongMsg in project openhab1-addons by openhab.

the class MaxCulMsgHandler method sendPairPong.

/**
     * Send response to PairPing as part of a message sequence
     * 
     * @param dstAddr
     *            Address of device to respond to
     * @param msgSeq
     *            Message sequence to associate
     */
public void sendPairPong(String dstAddr, MessageSequencer msgSeq) {
    PairPongMsg pp = new PairPongMsg(getMessageCount(), (byte) 0, (byte) 0, this.srcAddr, dstAddr);
    pp.setMessageSequencer(msgSeq);
    sendMessage(pp);
}
Also used : PairPongMsg(org.openhab.binding.maxcul.internal.messages.PairPongMsg)

Example 2 with PairPongMsg

use of org.openhab.binding.maxcul.internal.messages.PairPongMsg in project openhab1-addons by openhab.

the class MaxCulMsgHandler method listenModeHandler.

private void listenModeHandler(String data) {
    switch(BaseMsg.getMsgType(data)) {
        case WALL_THERMOSTAT_CONTROL:
            new WallThermostatControlMsg(data).printMessage();
            break;
        case TIME_INFO:
            new TimeInfoMsg(data).printMessage();
            break;
        case SET_TEMPERATURE:
            new SetTemperatureMsg(data).printMessage();
            break;
        case ACK:
            new AckMsg(data).printMessage();
            break;
        case PAIR_PING:
            new PairPingMsg(data).printMessage();
            break;
        case PAIR_PONG:
            new PairPongMsg(data).printMessage();
            break;
        case THERMOSTAT_STATE:
            new ThermostatStateMsg(data).printMessage();
            break;
        case SET_GROUP_ID:
            new SetGroupIdMsg(data).printMessage();
            break;
        case WAKEUP:
            new WakeupMsg(data).printMessage();
            break;
        case WALL_THERMOSTAT_STATE:
            new WallThermostatStateMsg(data).printMessage();
            break;
        case ADD_LINK_PARTNER:
        case CONFIG_TEMPERATURES:
        case CONFIG_VALVE:
        case CONFIG_WEEK_PROFILE:
        case PUSH_BUTTON_STATE:
        case REMOVE_GROUP_ID:
        case REMOVE_LINK_PARTNER:
        case RESET:
        case SET_COMFORT_TEMPERATURE:
        case SET_DISPLAY_ACTUAL_TEMP:
        case SET_ECO_TEMPERATURE:
        case SHUTTER_CONTACT_STATE:
        case UNKNOWN:
        default:
            BaseMsg baseMsg = new BaseMsg(data);
            baseMsg.printMessage();
            break;
    }
}
Also used : WallThermostatStateMsg(org.openhab.binding.maxcul.internal.messages.WallThermostatStateMsg) PairPongMsg(org.openhab.binding.maxcul.internal.messages.PairPongMsg) PairPingMsg(org.openhab.binding.maxcul.internal.messages.PairPingMsg) BaseMsg(org.openhab.binding.maxcul.internal.messages.BaseMsg) SetTemperatureMsg(org.openhab.binding.maxcul.internal.messages.SetTemperatureMsg) ThermostatStateMsg(org.openhab.binding.maxcul.internal.messages.ThermostatStateMsg) WallThermostatStateMsg(org.openhab.binding.maxcul.internal.messages.WallThermostatStateMsg) TimeInfoMsg(org.openhab.binding.maxcul.internal.messages.TimeInfoMsg) AckMsg(org.openhab.binding.maxcul.internal.messages.AckMsg) WallThermostatControlMsg(org.openhab.binding.maxcul.internal.messages.WallThermostatControlMsg) SetGroupIdMsg(org.openhab.binding.maxcul.internal.messages.SetGroupIdMsg) WakeupMsg(org.openhab.binding.maxcul.internal.messages.WakeupMsg)

Aggregations

PairPongMsg (org.openhab.binding.maxcul.internal.messages.PairPongMsg)2 AckMsg (org.openhab.binding.maxcul.internal.messages.AckMsg)1 BaseMsg (org.openhab.binding.maxcul.internal.messages.BaseMsg)1 PairPingMsg (org.openhab.binding.maxcul.internal.messages.PairPingMsg)1 SetGroupIdMsg (org.openhab.binding.maxcul.internal.messages.SetGroupIdMsg)1 SetTemperatureMsg (org.openhab.binding.maxcul.internal.messages.SetTemperatureMsg)1 ThermostatStateMsg (org.openhab.binding.maxcul.internal.messages.ThermostatStateMsg)1 TimeInfoMsg (org.openhab.binding.maxcul.internal.messages.TimeInfoMsg)1 WakeupMsg (org.openhab.binding.maxcul.internal.messages.WakeupMsg)1 WallThermostatControlMsg (org.openhab.binding.maxcul.internal.messages.WallThermostatControlMsg)1 WallThermostatStateMsg (org.openhab.binding.maxcul.internal.messages.WallThermostatStateMsg)1