php SDK for AB BLE Gateway
Switch branches/tags
Nothing to show
Clone or download
Latest commit 724b328 Nov 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples add parser example for gateway 4 Nov 19, 2018
src add Parser for gateway V4 May 24, 2018
.gitignore gitignore Mar 21, 2017
LICENSE Initial commit Mar 16, 2017
composer.json license Mar 24, 2017
readme.md update readme for gateway 4 Nov 19, 2018

readme.md

PHP SDK for AB BLE Gateway

Installation

  • Install composer
  • Run
composer require aprbrother/ab-ble-gateway=dev-master

Usage

Gateway V4

$parser     = new AprBrother\PacketParser4();
$meta       = $parser->parse($content);
$rawData    = $meta['devices'];
$data       = [];
unset($meta['devices']);
foreach($rawData as $v) {
    $data[] = $parser->parse($v);
}

Gateway V2 or V3

$parser = new AprBrother\PacketParser();
list($meta, $data) = $parser->parse($content);