Download the PHP package power-lan/cayenne-lpp without Composer
On this page you can find all versions of the php package power-lan/cayenne-lpp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download power-lan/cayenne-lpp
More information about power-lan/cayenne-lpp
Files in power-lan/cayenne-lpp
Download power-lan/cayenne-lpp
More information about power-lan/cayenne-lpp
Files in power-lan/cayenne-lpp
Vendor power-lan
Package cayenne-lpp
Short Description PHP Cayenne LPP encoder and decoder
License MIT
Homepage http://www.photon-project.com/
Package cayenne-lpp
Short Description PHP Cayenne LPP encoder and decoder
License MIT
Homepage http://www.photon-project.com/
Please rate this library. Is it a good library?
Informations about the package cayenne-lpp
PHP Cayenne LPP encoder and decoder
This library can encode and decode data stream for LoraWan and SigFox devices which use Cayenne LPP encoding.
Encoder exemple
$encoder = new CayenneLPP\Encoder;
$encoder->addTemperature(0, 20.0);
$encoder->addTemperature(1, 21.0);
$buffer = $encoder->getBuffer();
$size = $encoder->getSize();
Decoder exemple
The decoder implements the Countable
interface.
It's allow to known how many dataset are in the binary stream.
$decoded = new CayenneLPP\Decoder(hex2bin('00860070013AFFFF' . '0186FFFF0070013A'));
$nbChannels = count($decoded);
The decoder implements Iterator
interface.
Each item are array which contains the data channel index, the data type, and the data decoded.
$decoded = new CayenneLPP\Decoder(hex2bin('00860070013AFFFF' . '0186FFFF0070013A'));
$nbChannels = count($decoded);
foreach ($decoded as $data) {
$channel = $data['channel'];
$type = $data['type'];
$data = $data['data'];
}
All versions of cayenne-lpp with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package power-lan/cayenne-lpp contains the following files
Loading the files please wait ....