In this article:
The Myriota Module SDK contains an example code directory to demonstrate the use of the SDK, the module hardware, and the Myriota Network.
These examples will help you to get familiar with both the SDK and the functionality and characteristics of the network, and provide a starting point for building your own user application.
Each example demonstrates a specific capability of the Myriota technology.
These examples are written in C and can be built and loaded onto a Myriota development board with no modification required.
To build on any of the examples below, check out the Module API, which provides all of the code resources you need to write your own applications and take advantage of our connected anywhere technology.
Example | Description | Language |
---|---|---|
For applications which require Myriota module to be used as a satellite modem controlled by AT commands, this example can be the starting point. Detailed usage, protocol and test method can be found in the readme file. | C | |
This example can be used to verify your SDK setup by just blinking the LED. It also demonstrates sandbox mode where you can run your test code much quicker and as long as it takes without triggering watchdog timeout | C | |
Our event example demonstrates a simple way to run a job when an event, e.g. GPIO wakeup, occurs | C | |
This example demonstrates how to test GNSS via the debug port. E.g. GNSS chip vendor's tool can be connected to test performance | C | |
This example demonstrates how to use I2C/SPI SDK API to communicate with the ST LIS3DH, a 3-axis linear accelerometer, over the I2C/SPI interface | C | |
This uses the LEUART interface to communicate between an external device and the Myriota module. It turns the Myriota module into a simple modem where the extern device can wakeup the module over the LEUART interface | C | |
The network_info example demonstrates updating the network information via system update APIs. |
C |
|
User NVRAM is persistent storage used by the application to preserve data across device resets. This example application demonstrates how to declare, read from, write to, and clear the NVRAM. | C | |
This example demonstrates how to use pulse counter SDK API to do low power pulse counting | C | |
This example demonstrates how to program your device to receive device control messages you generate in the cloud. | C | |
This example demonstrates how to use satellite radio RF test API to conduct RF tests for radio performance check, certification, manufacturing testing and etc | C | |
This example demonstrates how to use 4-20mA sensor, vibration sensor and wake-up button on Myriota Sense&Locate. Example BSP implementation for Sense&Locate is included as well. Batteries should be removed when accessing the device with Myriota's software tools updater.py and log-util.py
|
C | |
The system_get example demonstrates how to retrieve system information, including diagnostics information from the module via system update APIs. |
C |
|
The tracker example turns the development board into an asset tracking device, sending messages logging the location and timestamp of the device. Simply build the tracker example and flash it using the instructions in Send with the Real Satellite to track any fixed or moving asset that the Dev Kit is attached to! The messages can be decoded from the hexadecimal string format using the example Python script. For an easier way to visualize your tracking messages, head over to our hosted Tracker Web Application and log in with your Device Manager credentials. From your list of devices on the left-hand side, select a tracker device and see the location of the device shown on Google Maps. You can also modify and host your own version of the Tracker Web Application using the application code. Check the readme file for more information. |
C |
|
This example demonstrates UART interface communication between an external device and the Myriota module. It turns the Myriota module into a simple modem. | C |