Announcement

Collapse
No announcement yet.

Possible bug in IP API .ino

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

  • Possible bug in IP API .ino

    The project I'm working on at the moment has 15 API outputs sending setup data to the Arduino board, which needs to run independently and uses an RTC for time keeping. It compares the RTC with the HS clock and resets it if the time is more than 4 minutes different.

    I'd tested the sketch and all seemed to be working OK, so I left it running to check that it didn't disconnect. After a couple of days running the times were several hours different. After some investigation I found that the highest 5 API outputs from Homeseer were generating nonsense.

    After a lot of trial and error and head scratching I decided to alter the line

    int FromHS[10];

    in the first "Do Not Change Anything" section to

    int FromHS[15];

    The higher 5 outputs then started sending correct data.

    My guess is that this tells the Arduino how many HS outputs to expect and if there are more outputs than expected the values will be undefined. If that's so then the plugin should change the value in the "int FromHS[]" statement to reflect the number of defined outputs, but it seems to be fixed at 10.

    I'm probably wrong and open to correction, but there does seem to be some sort of issue.

  • #2
    Yes you are correct with this. I need to change it to 50 as there is a max of 50 inputs and outputs in the API mode. I will change this in the next build.

    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

    Working...
    X