3 require_once
'BayEOSGatewayClient.php';
5 die(
"Usage: dumpCat.php BAYEOS.DB.File\n");
7 if(! is_readable($argv[1]))
8 die(
"File $argv[1] not readable\n");
10 $ref_date= DateTime::createFromFormat(
'Y-m-d H:i:s P',
'2000-01-01 00:00:00 +00:00');
11 $fp=fopen($argv[1],
"r");
18 $length_bin=fread(
$fp,1);
20 if($length) $bayeosframe=fread(
$fp,$length);
23 fwrite(STDOUT,
"found frame: ".date(
'Y-m-d h:i:s',$ts+
$ref_date->format(
'U')).
" - ".($ts/3600).
"\n");
static parseFrame($frame, $ts=FALSE, $origin='', $rssi=FALSE)
static unpackUINT32($value, $endianness=0)
static unpackUINT8($value)