-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from icetee/hotfix/example
Fixed example code
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ you can use this to simply send SMS, get information about your internet usage, | |
* Huawei B715s-23c | ||
* Huawei E5186s-22a | ||
* Huawei B528s | ||
* Huawei E5576-320 | ||
* Huawei E5577Cs-321 | ||
|
||
#### 3G/LTE USB sticks: | ||
|
@@ -37,8 +38,11 @@ $ npm i huawei-lte-api --save | |
```typescript | ||
import { Connection, Device } from 'huawei-lte-api'; | ||
|
||
const connection = Connection('http://admin:[email protected]/') | ||
const connection = new Connection('http://admin:[email protected]/'); | ||
|
||
connection.ready.then(() => { | ||
const device = new Device(connection); | ||
|
||
//Can be accessed without authorization | ||
device.signal().then((result) => { | ||
console.log(result); | ||
|