Results 1 to 10 of 11

Thread: Transport Class and Events

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default Transport Class and Events

    Hopefully this makes sense.

    I am trying to send an event from my transport class to the provider class using self:Event(self.Events.AnEvent), the event is never seen. If I send the same from my component class, then my provider class sees the event.

    How do I do the same from my transport class?
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

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

    Default

    I think the first parameter should probably be self.Events.Update for it to be passed up the chain. It all depends what's subscribed to the transport.

    How is your transport class created?
    --Rob

  3. #3
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default

    In the component file I have the following
    Code:
    Enable = function (self)
        print ("ElkM1EZ8:Enable()")
        local b = Super.Enable (self)
    
        --table.print (self.Settings)
        if self.Settings.Communications.Type then
            self.ElkM1EZ8 = Classes.ElkM1EZ8Class:New (table.copy(self.Settings))
        end
    
        return b
    end,
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

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

    Default

    Is anything actually calling your Subscribe method?
    --Rob

  5. #5
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default

    My transport class is based on the MediaBridge class, it does not contain an Event, Subscribe or Unsubscribe methods. I am sure there is something missing in the chain just not sure what.
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

  6. #6
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,032

    Default

    Here is a sample which illustrates the behaviour.
    Attached Files Attached Files
    Rick

    Girder 5.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote 2.0 - Panasonic KX-TA624 Phone System - ZoneMinder DVR
    Girder 5 Plugins - Elk M1/EZ8, Email Manager, Girder Backup, Ocelot, xAP Speedfan, xAP Ping, xAP Zoneminder and many more.


    Visit My Showcase

Posting Permissions

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