Results 1 to 3 of 3

Thread: load order; serial plugin vs treescript plugin

  1. #1
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default load order; serial plugin vs treescript plugin

    My new serial device gets loaded by the serial plugin. The actions that can be performed on it are made available through the treescript plugin.

    The treescript part initializes the device, but hence needs the serial connection to be available. Often upon startup it fails because the serial driver isn't ready yet. Pressing F11 to reset the script engine usually resolves the issue.

    Any thoughts on how to fix this and make it more reliable?
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    I'd need to see what you're doing there - but I wouldn't really recommend initialising the device from treescript actions.
    --Rob

  3. #3
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    having my serial plugin for RFXmitter and a treescript plugin to create the action interface and the config page.

    Applying the settings is only coded in the treescript action, if the serial device needs to apply them upon startup (instead of treescript) then I need to duplicate that part of the code. In the treescript for the OnApply action, and in the serial plugin when starting the serial plugin.

    Hence, initializing from treescript needed the code only in one place, easier to maintain. Guess I have to duplicate it anyway.
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •