Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-corelink-rtls-sensor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-corelink-rtls-sensor

Corelink sensor for cordova app

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source
  • ios
  • android

Installation

cordova plugin add cordova-plugin-corelink-rtls-sensor --save

or via ionic

ionic cordova plugin add cordova-plugin-corelink-rtls-sensor

Relative Dependencies

cordova-support-kotlin

cordova plugin add cordova-support-kotlin --save

or via ionic

ionic cordova plugin add cordova-support-kotlin

Usage

Ble.start

Definition
Ble.start(successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.start(() => {
  console.log('started');
}, errCode => {
  console.error('Failed to start,', errCode);
});

Ble.stop

Definition
Ble.stop(successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.stop(() => {
  console.log('stopped');
}, errCode => {
  console.error('Failed to stop,', errCode);
});

Ble.setId

Definition
Ble.setId(id: number, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setId(0, () => {
  console.log('set id to 0');
}, errCode => {
  console.error('failed to set id', errCode);
});

Id is a number from 0 to 0xffff.

Ble.setCustomFlag

Definition
Ble.setCustomFlag(customFlag: number, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setCustomFlag(0, () => {
  console.log('set customFlag to 0');
}, errCode => {
  console.error('failed to set customFlag', errCode);
});

CustomFlag is a number from 0 to 127.

Ble.setAlarm

Definition
Ble.setAlarm(alarm: boolean, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setAlarm(true, () => {
  console.log('set alarm to true');
}, errCode => {
  console.error('failed to set alarm', errCode);
});

Ble.setBattery

Definition
Ble.setBattery(battery: number, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setBattery(0, () => {
  console.log('set battery to 0');
}, errCode => {
  console.error('failed to set battery', errCode);
});

Battery is a number from 0 to 10.

Ble.setTxPowerLevel

Definition
Ble.setTxPowerLevel(txPowerLevel: number, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setTxPowerLevel(0, () => {
  console.log('set txPowerLevel to 0');
}, errCode => {
  console.error('failed to set txPowerLevel', errCode);
});

TxPowerLevel

  • 0: ADVERTISE_TX_POWER_ULTRA_LOW
  • 1: ADVERTISE_TX_POWER_LOW
  • 2: ADVERTISE_TX_POWER_MEDIUM
  • 3: ADVERTISE_TX_POWER_HIGH (default)

Ble.setAdvertiseMode

Definition
Ble.setAdvertiseMode(AdvertiseMode: number, successCallback: () => void, failedCallback(errCode: number) => void)
Example
Ble.setAdvertiseMode(0, () => {
  console.log('set advertiseMode to 0');
}, errCode => {
  console.error('failed to set advertiseMode', errCode);
});

AdvertiseMode

  • 0: ADVERTISE_MODE_LOW_POWER
  • 1: ADVERTISE_MODE_BALANCED (default)
  • 2: ADVERTISE_MODE_LOW_LATENCY

Keywords

FAQs

Package last updated on 08 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc