Announcement

Collapse
No announcement yet.

HS2->HS3 - Need a pointer

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

    HS2->HS3 - Need a pointer

    I have a standalone Windows EXE/service application that is connected to HS2 (from a remote computer). This works just fine....
    I'm now looking for upgrading my application to HS3.

    This was done in HS2
    var _hsapp = new application();
    _hsapp.SetHost(Host);
    var con = _hsapp.Connect(UserName, UserPassword);
    _hs = _hsapp.GetHSRef();
    _hsapp.RegisterEventCB(4, this); (events come to HSEvent automagical)

    And then we was online with HS2. Then I can enumerate all the devices and get and set values on each device. Very nice!

    But this have changed a little bit.
    Have looked at all this samples and all it do was confusing me.

    Is there a paper somewhere that just tell me with I must do like in HS3 wat I did in HS marked in red?

    Best regards,
    Geir

    #2
    See if this post doesn't help with this issue.
    http://board.homeseer.com/showthread.php?p=1098206
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Thank you for the "pointing". Now I am connected.

      But I wonder why I get this message:
      "Starting plugin: Client does not wait for method invocations by server."
      What should I wait for?

      And I cant see any callbacks:
      Is this how it should be done?

      Init()
      {
      ...
      callback.RegisterEventCB(HomeSeerAPI.Enums.HSEvent.VALUE_CHA NGE, "myApp", "");
      }


      public void HSEvent(int evtype, object[] parms)
      {
      Log("evtype:" + evtype);
      }


      regards,

      Comment


        #4
        Yea, you need to download the new HS3 SDK and have a look at the sample plugin. It has this information in the template.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment

        Working...
        X