Skip to content

Commit

Permalink
Merge pull request #18 from icetee/hotfix/example
Browse files Browse the repository at this point in the history
Fixed example code
  • Loading branch information
Salamek authored Dec 29, 2021
2 parents 9fdf5ab + 37efeb5 commit 7132bf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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);
Expand Down

0 comments on commit 7132bf5

Please sign in to comment.