- or download this
# $d as data
# $mbc as ModBusControl
# $r as response
my ( $d, $mbc, $r )=( shift, MBclient->new(), undef );
- or download this
my $data = shift;
my $mod_bus_control = MBClient->new;
my $response = undef;
- or download this
$mbc->host ( $d->{ip} );
$mbc->port ( $d->{port} );
$mbc->unit_id ( 0 );
- or download this
$mbc->host( $d->{ip} );
$mbc->port( $d->{port} );
$mbc->unit_id( 0 );