2017 © Pedro Peláez
 

library ab-ble-gateway

SDK for AB BLE Gateway

image

aprbrother/ab-ble-gateway

SDK for AB BLE Gateway

  • Tuesday, May 29, 2018
  • by aprbrother
  • Repository
  • 2 Watchers
  • 1 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 15 % Grown

The README.md

PHP SDK for AB BLE Gateway, (*1)

Installation

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

For BLE Gateway V4, you should install msgpack extension also, (*2)

pecl install msgpack, (*3)

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);

The Versions

29/05 2018

dev-master

9999999-dev

SDK for AB BLE Gateway

  Sources   Download

Apache-2.0

by Yanc