Package org.openhab.binding.maxcul.internal.messages

Examples of org.openhab.binding.maxcul.internal.messages.TimeInfoMsg


  public void runSequencer(BaseMsg msg) {
    pktLostCount = 0;
    switch (state) {
    case RESPOND_TO_REQUEST:
      if (BaseMsg.getMsgType(msg.rawMsg) == MaxCulMsgType.TIME_INFO) {
        TimeInfoMsg timeMsg = new TimeInfoMsg(msg.rawMsg);
        if (isValidDeviation(timeMsg.getTimeInfo(),
            new GregorianCalendar(), TIME_TOLERANCE)) {
          messageHandler.sendAck(msg);
          state = TimeUpdateRequestState.FINISHED;
        } else {
          messageHandler.sendTimeInfo(msg.srcAddrStr, tzStr, this);
View Full Code Here


    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:
View Full Code Here

   * @param msgSeq
   *            Message sequence to associate
   */
  public void sendTimeInfo(String dstAddr, String tzStr,
      MessageSequencer msgSeq) {
    TimeInfoMsg msg = new TimeInfoMsg(getMessageCount(), (byte) 0x0,
        (byte) 0, this.srcAddr, dstAddr, tzStr);
    msg.setMessageSequencer(msgSeq);
    sendMessage(msg);
  }
View Full Code Here

   *            Time Zone String
   * @param msgSeq
   *            Message sequence to associate
   */
  public void sendTimeInfoFast(String dstAddr, String tzStr) {
    TimeInfoMsg msg = new TimeInfoMsg(getMessageCount(), (byte) 0x0,
        (byte) 0, this.srcAddr, dstAddr, tzStr);
    msg.setFastSend(true);
    sendMessage(msg);
  }
View Full Code Here

        /* respond to device */
        if (isBroadcast == false)
          this.messageHandler.sendAck(wallThermStateMsg);
        break;
      case TIME_INFO:
        TimeInfoMsg timeMsg = new TimeInfoMsg(data);
        timeMsg.printMessage();
        TimeUpdateRequestSequence timeSeq = new TimeUpdateRequestSequence(
            this.tzStr, messageHandler);
        messageHandler.startSequence(timeSeq, timeMsg);
        break;
      case PUSH_BUTTON_STATE:
View Full Code Here

TOP

Related Classes of org.openhab.binding.maxcul.internal.messages.TimeInfoMsg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.