Skip to content

Commit 38aa434

Browse files
committed
Add #require statement
1 parent a4d155e commit 38aa434

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
This library provides your application with access to GPS location data retrieved from a BG96 module. It is intended for use with the imp006.
44

5-
**To include this library to your project, copy the content of the file**
5+
**To include this library to your project, add the following line to the top of your device code:**
66

77
```squirrel
8-
bg96_gps.device.lib.nut
8+
#require "BG96_GPS.device.lib.nut:1.0.0"
99
```
1010

11-
**and paste it at the top of your device code**
12-
1311
![Build Status](https://cse-ci.electricimp.com/app/rest/builds/buildType:(id:Bg96gps_BuildAndTest)/statusIcon)
1412

1513
## BG96 GPS Usage ##
@@ -21,6 +19,8 @@ The library provides a singleton, *BG_96*, and therefore has no constructor. The
2119
This is a very simple example that enables GNSS on the BG96 and then polls and prints out the location fix every ten seconds:
2220

2321
```squirrel
22+
#require "BG96_GPS.device.lib.nut:1.0.0"
23+
2424
function onLocation(result) {
2525
if ("fix" in result) {
2626
server.log("Got fix:");
@@ -174,8 +174,8 @@ Nothing.
174174

175175
## Release Notes ##
176176

177-
- 1.0.0
178-
- Initial public release.
177+
* 1.0.0
178+
* Initial public release.
179179

180180
## License ##
181181

0 commit comments

Comments
 (0)