Announcement

Collapse
No announcement yet.

Testing.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Testing.

    When connected via IP (ISIP==1), does the serial connection (COM6) still work? I am getting feedback to HS3 via the SendToHS but nothing in the serial monitor in Arduino IDE.

    Code:
    /*************************************************************
      Arduino to Homeseer 3 Plugin API written by Enigma Theatre.
       V1.0.0.146
     *                                                           *
     *************************************************************/
    int FromHS[5], oldvalue[5];
    boolean IsConnected = false;
    //************************************************************
    
    
    //**************Declare your variables here*******************
    
    
    
    //****************************************************************
    
    
    
    
    void HSSetup() {
    
      //************************
      //Add YOUR SETUP HERE;
      //************************
    oldvalue[0]= -1;
    oldvalue[1]= -1;
    
    }
    
    
    void HSloop() {
    
    if (oldvalue[0]!=FromHS[0]){
    Serial.print("FromHS[0] = ");
    Serial.println(FromHS[0]);
    oldvalue[0]=FromHS[0];
    SendToHS(1,77);
    }
    
    if (oldvalue[1]!=FromHS[1]){
    Serial.print("FromHS[1] = ");
    Serial.println(FromHS[1]);
    oldvalue[1]=FromHS[1];
    SendToHS(2,88);
    }

  • #2
    Originally posted by Bugman1400 View Post
    When connected via IP (ISIP==1), does the serial connection (COM6) still work? I am getting feedback to HS3 via the SendToHS but nothing in the serial monitor in Arduino IDE.

    Code:
    /*************************************************************
      Arduino to Homeseer 3 Plugin API written by Enigma Theatre.
       V1.0.0.146
     *                                                           *
     *************************************************************/
    int FromHS[5], oldvalue[5];
    boolean IsConnected = false;
    //************************************************************
    
    
    //**************Declare your variables here*******************
    
    
    
    //****************************************************************
    
    
    
    
    void HSSetup() {
    
      //************************
      //Add YOUR SETUP HERE;
      //************************
    oldvalue[0]= -1;
    oldvalue[1]= -1;
    
    }
    
    
    void HSloop() {
    
    if (oldvalue[0]!=FromHS[0]){
    Serial.print("FromHS[0] = ");
    Serial.println(FromHS[0]);
    oldvalue[0]=FromHS[0];
    SendToHS(1,77);
    }
    
    if (oldvalue[1]!=FromHS[1]){
    Serial.print("FromHS[1] = ");
    Serial.println(FromHS[1]);
    oldvalue[1]=FromHS[1];
    SendToHS(2,88);
    }
    No the board will not open the serial connection as it is not required. Add the line Serial.begin(115200); to your HSSetup() Void.

    Greig.
    Zwave = Z-Stick, 3xHSM100 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


    • #3
      Damn it! I always miss the easy ones.

      Thanks Greig!

      Comment

      Working...
      X