Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Waiting for Device::Serialport

by huck (Prior)
on May 17, 2018 at 17:57 UTC ( #1214771=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ob->read_char_time(5);            # avg time between read char
    $ob->read_const_time(500);         # timeout after 500 milliseconds = 
    +0.5 seconds
    
  2. or download this
    my $ob = tie (*FH, 'Device::SerialPort', $cfgfile)
           || die "Can't tie: $!\n";             ## TIEHANDLE ##
    
  3. or download this
        @gotits=<FH> ;
    
  4. or download this
    $timestamp = uts_to_iso(time());
    
  5. or download this
    my $dtdate=dt('date'); my $dttime=dt('time');
    
  6. or download this
    $q = "insert into weather_data values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
    +, ?, ?, ?, ?, ?, ?)";
    my $sth = $dbh->prepare($q);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1214771]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2021-10-24 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?