UNPKG

bleadvertise

Version:

Parse and generate Bluetooth Low Energy peripheral advertising packets

19 lines (16 loc) 767 B
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. var PacketParser = require('./lib/parser'); var PacketBuilder = require('./lib/serializer'); module.exports.parse = PacketParser.parse; module.exports.parseLE = PacketParser.parseLE; module.exports.parseBE = PacketParser.parseBE; module.exports.serialize = PacketBuilder.serialize; // For testing only module.exports.split = PacketParser.split;