wifi-rtt-module
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

wifi-rtt-module

wifi-rtt-module

Installation

npm install wifi-rtt-module

Usage

import {
  isAvailable,
  hasFeatureWifiRtt,
  isAvailableRtt,
  startRanging,
  getRangingResult,
  endRanging
} from 'wifi-rtt-module';

// ...

isAvailable((result) => {
   ...
});

hasFeatureWifiRtt((result) => {
   ...
});

isAvailableRtt((result) => {
   ...
});

try {
  //Available modes: 'WITH_RTT', 'WITHOUT_RTT', 'MIXED'
  const result = await startRanging("MIXED");
  //...
} catch (e) {
  //...
}

try {
  const result = await getRangingResult();
  //...
} catch (e) {
  //...
}

endRanging();

Package Sidebar

Install

npm i wifi-rtt-module

Weekly Downloads

80

Version

0.7.2

License

MIT

Unpacked Size

588 MB

Total Files

1992

Last publish

Collaborators

  • vasyl_stetsiuk