Skip to content

Commit

Permalink
Add documentation for Arduino (#2104)
Browse files Browse the repository at this point in the history
* Add documentation for Arduino

* Correct linting errors

* Update docs/quickstart.md

Co-authored-by: Francisco Beltrao <[email protected]>

---------

Co-authored-by: Francisco Beltrao <[email protected]>
  • Loading branch information
Mandur and fbeltrao authored Oct 23, 2023
1 parent ac3a11b commit ff6b8fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ By using the `docker ps` command, you should see the Edge containers being deplo

### What does the template do?

The template provision an IoT Hub with a [LoRa Basics™ Station](https://github.com/lorabasics/basicstation) and a network server module already pre-configured to work out of the box. As soon as you connect your IoT Edge device in point 4 above, those will be pushed on your device. You can find template definition and Edge deployment specification [here](https://github.com/Azure/iotedge-lorawan-starterkit/tree/dev/Template).
The template provision an IoT Hub with a [LoRa Basics™ Station](https://github.com/lorabasics/basicstation) and a network server module already pre-configured to work out of the box. As soon as you connect your IoT Edge device in point 4 above, those will be pushed on your device. You can find template definition and Edge deployment specification [here](https://github.com/Azure/iotedge-lorawan-starterkit/tree/dev/Template). When setting the "deployDevice" argument to true, some LoRaWan devices will be ready to be used immediately, please consult the [Arduino Samples Documentation](samples/arduino.md) to discover how to quickly use them for tests.

If you are using the the RAK833-USB, you'll need to build a different LoRa Basics™ Station image. You can find a fork of the official Basic Station repository with support for RAK833-USB [here](https://github.com/danigian/basicstation).

Expand Down
2 changes: 2 additions & 0 deletions docs/samples/arduino.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This samples were tested with the [Seeeduino LoRaWan boards](http://wiki.seeedst

If you are using another LoRaWan library, you will have to adjust this code as so far, all LoRaWan libraries are different from one manufacturer to another on Arduino platform. That said, adaptation shouldn't be too difficult and equivalent functions has to exist in all libraries.

> **When using the initial template to provision the devices, make sure to get the devices key in the devices' twins or in the ARM deployment logs (go to the deployment resource group and then to deployments/devices/createIothubDevices)**
This samples were tested with the Seeeduino LoRaWan boards. Samples are organized by regions as LoRaWan uses different frequences based on your geography. Please make sure you're using the sample from the correct geography.

1. **TransmissionTestOTAALoRa** - This is the most basic example. The sample perform an OTAA authentication and send a message to the gateway every 5 seconds. The sample also display on the serial interface any cloud to device message.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/lns-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ as environment variables for manual configuration of the
| HTTPS_PROXY | HTTPS proxy url | No |
| RX2_DATR | RX2 data rate; useful to override the default regional RX2 Data Rate at a global level | No (defaults to null, regional default value is used) |
| RX2_FREQ | RX2 frequency; useful to override the default regional RX2 Frequency at a global level | No (defaults to null, regional default value is used) |
| FACADE_SERVER_URL | Azure Facade function url, e.g. "https://deployedfunction.azurewebsites.net/api" | Yes |
| FACADE_SERVER_URL | Azure Facade function url, e.g. <https://deployedfunction.azurewebsites.net/api> | Yes |
| FACADE_AUTH_CODE | Azure Facade function auth code | Yes |
| LOG_LEVEL | Logging level | No (defaults to level 4 (Error) |
| LOG_TO_CONSOLE | Indicates whether logging to console is enabled or not | No (default to `true`) |
Expand Down Expand Up @@ -58,5 +58,5 @@ environment variables:
| IOTHUBHOSTNAME | Host name of the IoT Hub to which the LNS should connect to. | Yes |
| HOSTNAME | Identifier of the LNS. | Yes |
| REDIS_CONNECTION_STRING | Connection string used to connect to the deployed Redis instance. | Yes |
| FACADE_SERVER_URL | Azure Facade function url, e.g. "https://deployedfunction.azurewebsites.net/api" | Yes |
| FACADE_SERVER_URL | Azure Facade function url, e.g. <https://deployedfunction.azurewebsites.net/api> | Yes |
| FACADE_AUTH_CODE | Azure Facade function auth code | Yes |

0 comments on commit ff6b8fc

Please sign in to comment.