Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Waiting for Device::Serialport

by huck (Prior)
on May 17, 2018 at 17:57 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-24 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found