0.0.1 • Published 7 years ago

node-sx1276 v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

node_sx1276


.init(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.init(function (err) {

});

.reset(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.reset(function (err) {

});

.isChannelFree(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.isChannelFree(function (err) {

});

.readChipVersion(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.readChipVersion(function (err) {

});

.readRssi(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.readRssi(function (err) {

});

.readSnr(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.readSnr(function (err) {

});

.readFrequency(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.readFrequency(function (err) {

});

.sleep(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.sleep(function (err) {

});

.standby(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.standby(function (err) {

});

.setOpMode(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.setOpMode(function (err) {

});

.useChannel(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.useChannel(function (err) {

});

.useModem(callback) - ok

TBD

Arguments:

  1. 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:

  1. regHdl (String | Number): Register handle.
  2. 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:

  1. regHdl (String | Number)): Register handle.
  2. value (Number): The value to write to the register.
  3. 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:

  1. callback (Function): function (err) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.read(function (err) {

});

.write(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.write(function (err) {

});

.readFifo(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.readFifo(function (err) {

});

.writeFifo(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.writeFifo(function (err) {

});

.send(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.send(function (err) {

});

.sendStr(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.sendStr(function (err) {

});

.configTx(callback) - ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.configTx(function (err) {

});

.configRx(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.configRx(function (err) {

});

.startTx(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.startTx(function (err) {

});

.startRx(callback)

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.startRx(function (err) {

});

.startCad(callback) -- ok

TBD

Arguments:

  1. callback (Function): function (err, granted) {}, will be called on

Returns:

  • (Promise)

Examples:

sx.startCad(function (err) {

});