node-sx1276 v0.0.1
node_sx1276
.init(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.init(function (err) {
});.reset(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.reset(function (err) {
});.isChannelFree(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.isChannelFree(function (err) {
});.readChipVersion(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readChipVersion(function (err) {
});.readRssi(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readRssi(function (err) {
});.readSnr(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readSnr(function (err) {
});.readFrequency(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readFrequency(function (err) {
});.sleep(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.sleep(function (err) {
});.standby(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.standby(function (err) {
});.setOpMode(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.setOpMode(function (err) {
});.useChannel(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.useChannel(function (err) {
});.useModem(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.useModem(function (err) {
});.readReg(regHdl, callback) - ok
Read value of a register by its handle regHdl, where regHdl can be an identifier (string) or an address (number).
Arguments:
regHdl(String | Number): Register handle.callback(Function):function (err, val) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readReg('COM.OpMode', function (err, val) {
if (!err)
console.log(val); // 26
});.writeReg(regHdl, value, callback) - ok
Write the value to a register by its handle regHdl, where regHdl can be an identifier (string) or an address (number).
Arguments:
regHdl(String | Number)): Register handle.value(Number): The value to write to the register.callback(Function):function (err) {}, will be called on
Returns:
- (Promise)
Examples:
sx.writeReg('COM.OpMod', 28, function (err) {
if (!err)
console.log('Written successful.');
});.read(regHdl, callback) - ok
Read value of a register by its handle regHdl, where regHdl can be an identifier (string) or an address (number). The read value will be an object if the value is coded in multi-fileds.
Arguments:
callback(Function):function (err) {}, will be called on
Returns:
- (Promise)
Examples:
sx.read(function (err) {
});.write(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.write(function (err) {
});.readFifo(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.readFifo(function (err) {
});.writeFifo(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.writeFifo(function (err) {
});.send(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.send(function (err) {
});.sendStr(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.sendStr(function (err) {
});.configTx(callback) - ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.configTx(function (err) {
});.configRx(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.configRx(function (err) {
});.startTx(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.startTx(function (err) {
});.startRx(callback)
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.startRx(function (err) {
});.startCad(callback) -- ok
TBD
Arguments:
callback(Function):function (err, granted) {}, will be called on
Returns:
- (Promise)
Examples:
sx.startCad(function (err) {
});9 years ago