On 07/07/10 16:52, John R. wrote:
> I have an object method in which I want to send two events one after
> another.

I don't recall why I didn't utilize a POE event for this.  I changed the
object method to an event and it works as expected.

sub scope {
    my ( $kernel, $self ) = @_[ KERNEL, OBJECT ];

    Logger->log({level => 'info',
               message => "radio told to enter bandscope"});
    $kernel->post( $self->{alias}, 'radio_cmd', 'AM' );

    $kernel->delay( 'radio_cmd' => 3, 'DS'  );

    $self->{mode} = 'scope';
    $kernel->post( $self->{caller}, 'scoping' => $self->{alias} );
    #print Dumper($poe_kernel->get_active_session());
}

Reply via email to