![]() |
Morse Micro IoT SDK
2.9.7
|
Demonstration of TWT setup.
This file demonstrates how to configure TWT using the Morse Micro WLAN API. The device then connects to an AP using the given TWT configuration. Once connected, it is possible to observe the effect of TWT by pinging the device from the AP. The device will only respond to the ping during its service period. To get a better understanding of the effect of TWT, it is recommended to capture and review a sniffer trace to see the over-the-air behavior.
For more details about the theory and operation of TWT see the Morse Micro Application Note APPNOTE-03.
Definition in file twt_setup.c.
#include <string.h>#include "mmosal.h"#include "mmwlan.h"#include "mmconfig.h"#include "mm_app_common.h"
Go to the source code of this file.
Functions | |
| static enum mmwlan_status | add_twt_configuration (uint32_t wake_interval_us, uint32_t min_wake_duration_us) |
| Add a TWT configuration requesting a periodic service period with the given arguments. More... | |
| void | app_init (void) |
| Main entry point to the application. More... | |
|
static |
Add a TWT configuration requesting a periodic service period with the given arguments.
| wake_interval_us | The wake interval in microseconds. |
| min_wake_duration_us | The minimum wake duration in microseconds. |
Definition at line 46 of file twt_setup.c.
| void app_init | ( | void | ) |
Main entry point to the application.
This will be invoked in a thread once operating system and hardware initialization has completed. It may return, but it does not have to.
Definition at line 73 of file twt_setup.c.