I have an object method in which I want to send two events one after another. If I do two posts one after the other the remote device I getting confused (both commands are ignored.
So I figured I would send first command, wait a few seconds, and then send the second command. What happends is the second command appears to be ignored (the 'radio_cmd' event is never entered. Here is my attempt: sub scope { my $self = shift; Logger->log({level => 'info', message => "radio told to enter bandscope"}); $poe_kernel->post( $self->{alias}, 'radio_cmd', 'AM' ); # first command $poe_kernel->delay( 'radio_cmd' => 3, 'DS' ); # second command $self->{mode} = 'scope'; $poe_kernel->post( $self->{caller}, 'scoping' => $self->{alias} ); #print Dumper($poe_kernel->get_active_session()); } I am thinking this does not work because "delay" sends to current session and in the object method that concept does not exist. Is this correct? What is the POE way of addressing what I want to accomplish? Thanks, John