Skip to content

Commit 1094b0e

Browse files
authored
Merge pull request #19 from AghaSaad04/master
[Documentation]
2 parents 198928f + 5b37817 commit 1094b0e

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Contribution Guidlines
2+
3+
This library is the culmination of the expertise of many members of the open source community who have dedicated their time and hard work. The best way to ask for help or propose a new idea is to [create a new issue](https://github.com/arduino/EduIntro/issues/new) while creating a Pull Request with your code changes allows you to share your own innovations with the rest of the community.
4+
5+
The following are some guidelines to observe when creating issues or PRs:
6+
7+
- Be friendly; it is important that we can all enjoy a safe space as we are all working on the same project and it is okay for people to have different ideas
8+
9+
- [Use code blocks](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code); it helps us help you when we can read your code! On that note also refrain from pasting more than 30 lines of code in a post, instead [create a gist](https://gist.github.com/) if you need to share large snippets
10+
11+
- Use reasonable titles; refrain from using overly long or capitalized titles as they are usually annoying and do little to encourage others to help :smile:
12+
13+
- Be detailed; refrain from mentioning code problems without sharing your source code and always give information regarding your board and version of the library

README.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# SigFox Library
2+
3+
## Description
4+
5+
This library allows you to use the ATMEL SigFox transceiver (ATAB8520E) on the Arduino MKRFOX1200 board. For additional information on the Arduino MKRFOX1200 board, see the [Getting Started page](https://www.arduino.cc/en/Guide/MKRFox1200) and the [product page](https://store.arduino.cc/usa/).
6+
7+
SigFox employs a cellular system that enables remote devices to connect using Ultra-Narrow Band (UNB) technology. It requires little energy, being termed Low-power Wide-area network (LPWAN).
8+
9+
## Installation
10+
11+
![image](https://user-images.githubusercontent.com/36513474/67494578-d9213100-f692-11e9-9cc2-e18e69ae7d3c.png)
12+
13+
### First Method
14+
15+
1. In the Arduino IDE, navigate to Sketch > Include Library > Manage Libraries
16+
1. Then the Library Manager will open and you will find a list of libraries that are already installed or ready for installation.
17+
1. Then search for EduIntro using the search bar.
18+
1. Click on the text area and then select the specific version and install it.
19+
20+
### Second Method
21+
22+
1. Navigate to the Releases page.
23+
1. Download the latest release.
24+
1. Extract the zip file
25+
1. In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library
26+
27+
## Features
28+
29+
- ### Ultra Narrowband
30+
31+
This library enables remote devices to use UNB. The benefit of using ultra narrowband receiver is that it rejects noise and interference which may enter the receiver, enabling an acceptable signal-to-noise ratio to be achieved with a relatively weak received signal
32+
33+
- ### LPWAN
34+
35+
SigFox library requies Low Powered Wide Area Network. This technology connects low-bandwidth devices with low rate of bits over long ranges.
36+
37+
- ### Good fit for small applications
38+
39+
This library is a good fit for any application that needs to send small, infrequent bursts of data. Things like basic alarm systems, location monitoring, and simple metering are all examples of one-way systems that might make sense for this network.
40+
41+
- ### Give back
42+
43+
SigFox is free for everyone. The licensed document can be copied, redistributed and used in the projects, assignments or anywhere.
44+
45+
- ### Licensed Document
46+
47+
Library is licensed under GNU lesser General Public License. It's not allowed to make changes in the functions or anything. The user simply has to import the library in the project and can use any of its functions by just calling it.
48+
49+
## Functions
50+
51+
- begin()
52+
- beginPacket()
53+
- write()
54+
- print()
55+
- endPacket()
56+
- parsePacket()
57+
- statusCode()
58+
- AtmVersion()
59+
- SigVersion()
60+
- ID()
61+
- PAC()
62+
- reset()
63+
- internalTemperature()
64+
- debug()
65+
- noDebug()
66+
- end()
67+
- peek()
68+
- available()
69+
- read()
70+
71+
For further functions description visit [SigFox](https://www.arduino.cc/en/Reference/SigFox)
72+
73+
## Example
74+
75+
There are many examples implemented where this library is used. You can find other examples from [Github-SigFox](https://github.com/arduino-libraries/SigFox/tree/master/examples) and [Arduino-Reference](https://www.arduino.cc/en/Reference/SigFox)
76+
77+
- ### Send Boolean
78+
79+
This sketch demonstrates how to send a simple binary data ( 0 or 1 ) using a MKRFox1200. If the application only needs to send one bit of information the transmission time (and thus power consumption) will be much lower than sending a full 12 bytes packet.
80+
81+
``` C++
82+
#include <SigFox.h>
83+
84+
bool value_to_send = true;
85+
86+
#define DEBUG 1
87+
88+
void setup() {
89+
90+
if (DEBUG){
91+
Serial.begin(9600);
92+
while (!Serial) {};
93+
}
94+
95+
if (!SigFox.begin()) {
96+
if (DEBUG){
97+
Serial.println("Sigfox module unavailable !");
98+
}
99+
return;
100+
}
101+
102+
if (DEBUG){
103+
SigFox.debug();
104+
Serial.println("ID = " + SigFox.ID());
105+
}
106+
107+
delay(100);
108+
109+
SigFox.beginPacket();
110+
SigFox.write(value_to_send);
111+
int ret = SigFox.endPacket();
112+
113+
if (DEBUG){
114+
Serial.print("Status : ");
115+
Serial.println(ret);
116+
}
117+
}
118+
119+
void loop(){}
120+
```
121+
122+
## Contributing
123+
124+
If you want to contribute to this project:
125+
126+
- Report bugs and errors
127+
- Ask for enhancements
128+
- Create issues and pull requests
129+
- Tell others about this library
130+
- Contribute new protocols
131+
132+
Please read [CONTRIBUTING.md](https://github.com/arduino-libraries/SigFox/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
133+
134+
## Credits
135+
136+
The Library created and maintained by Arduino LLC
137+
138+
Based on previous work by:
139+
140+
- M. Faccihin
141+
- N. Lesconnec
142+
- N. Barcucci
143+
144+
## Current stable version
145+
146+
**version:** v1.0.4
147+
148+
## License
149+
150+
This library is licensed under [GNU LGPL](https://www.gnu.org/licenses/lgpl-3.0.en.html).

0 commit comments

Comments
 (0)