Public Member Functions | |
__construct ($path, $max_chunk=5000, $max_time=60) | |
save ($values, $origin='', $type=0x41, $offset=0, $ts=0) | |
saveDataFrame ($values, $type=0x1, $offset=0, $ts=0) | |
saveOriginDataFrame ($origin, $values, $type=0x1, $offset=0, $ts=0) | |
saveOriginFrame ($origin, $frame, $ts=0) | |
saveRoutedFrameRSSI ($MyId, $PanId, $rssi, $frame, $ts=0) | |
saveMessage ($sting, $ts=0) | |
saveErrorMessage ($sting, $ts=0) | |
saveFrame ($frame, $ts=0) | |
Definition at line 368 of file BayEOSGatewayClient.php.
__construct | ( | $path, | |
$max_chunk = 5000 , |
|||
$max_time = 60 |
|||
) |
Create a BayEOSWriter Instance
string | $path | Path of queue directory |
int | $max_chunk | Maximum file size when a new file is started |
int | $max_time | Maximum time when a new file is started |
Definition at line 379 of file BayEOSGatewayClient.php.
save | ( | $values, | |
$origin = '' , |
|||
$type = 0x41 , |
|||
$offset = 0 , |
|||
$ts = 0 |
|||
) |
Write a Frame to buffer
array | $value | in the form ('channel_number'=>'value',...) |
string | $origin | Origin if set this will be the name of the board in the gateway |
int | $type | valid bayeos data frame type number |
int | offset offset parameter for bayeos data frames (not relevant for all types) | |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 415 of file BayEOSGatewayClient.php.
saveDataFrame | ( | $values, | |
$type = 0x1 , |
|||
$offset = 0 , |
|||
$ts = 0 |
|||
) |
Write a dataFrame to the buffer
array | $value | in the form ('channel_number'=>'value',...) |
int | $type | valid bayeos data frame type number |
int | offset offset parameter for bayeos data frames (not relevant for all types) | |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 440 of file BayEOSGatewayClient.php.
saveErrorMessage | ( | $sting, | |
$ts = 0 |
|||
) |
Save Error Message
string | $sting | Message to save |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 533 of file BayEOSGatewayClient.php.
saveFrame | ( | $frame, | |
$ts = 0 |
|||
) |
Save Frame
Base Function
string | $frame | must be a valid bayeosframe |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 548 of file BayEOSGatewayClient.php.
saveMessage | ( | $sting, | |
$ts = 0 |
|||
) |
Save Message
string | $sting | Message to save |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 520 of file BayEOSGatewayClient.php.
saveOriginDataFrame | ( | $origin, | |
$values, | |||
$type = 0x1 , |
|||
$offset = 0 , |
|||
$ts = 0 |
|||
) |
Save Data Frame wrapped in Origin Frame
string | $origin | is the name to appear in the gateway |
array | $value | in the form ('channel_number'=>'value',...) |
int | $type | valid bayeos data frame type number |
int | offset offset parameter for bayeos data frames (not relevant for all types) | |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 459 of file BayEOSGatewayClient.php.
saveOriginFrame | ( | $origin, | |
$frame, | |||
$ts = 0 |
|||
) |
Save Origin Frame
string | $origin | is the name to appear in the gateway |
string | $frame | must be a valid bayeosframe |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 478 of file BayEOSGatewayClient.php.
saveRoutedFrameRSSI | ( | $MyId, | |
$PanId, | |||
$rssi, | |||
$frame, | |||
$ts = 0 |
|||
) |
Save Routed Frame RSSI
int | $MyId | TX-XBee MyId |
int | $PanId | XBee PANID |
int | $rssi | RSSI |
string | $frame | must be a valid bayeosframe |
float | $ts | Unix epoch timestamp. If zero write uses system time |
Definition at line 502 of file BayEOSGatewayClient.php.