|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
#include "lorawan.h"#include <libents/storage/fram.h>#include <libents/util/time.h>#include <libtock-sync/services/alarm.h>#include <libtock/net/eui64.h>#include <ulog.h>#include "RadioLib.h"#include "config.h"Go to the source code of this file.
Macros | |
| #define | LORAWAN_NONCES_ADDR 2200 |
Functions | |
| int | lorawan_upload_fport (uint8_t *buffer, int length, int fport) |
| int | lorawan_init (void) |
| int | lorawan_join (void) |
| int | lorawan_timesync (void) |
| int | lorawan_upload (uint8_t *buffer, int length) |
| int | lorawan_heartbeat (void) |
Definition in file lorawan.cc.
| #define LORAWAN_NONCES_ADDR 2200 |
Definition at line 20 of file lorawan.cc.
| int lorawan_heartbeat | ( | void | ) |
| int lorawan_init | ( | void | ) |
| int lorawan_join | ( | void | ) |
Definition at line 82 of file lorawan.cc.
References FORMAT32_KEY, FORMAT_KEY, fram_read(), fram_write(), LORAWAN_NONCES_ADDR, RADIOLIB_LORAWAN_APP_KEY, RADIOLIB_LORAWAN_DEV_EUI, RADIOLIB_LORAWAN_JOIN_EUI, RADIOLIB_LORAWAN_NWK_KEY, and state.
Referenced by main().
| int lorawan_timesync | ( | void | ) |
| int lorawan_upload | ( | uint8_t * | buffer, |
| int | length | ||
| ) |
Definition at line 275 of file lorawan.cc.
References buffer, and lorawan_upload_fport().
Referenced by main().
| int lorawan_upload_fport | ( | uint8_t * | buffer, |
| int | length, | ||
| int | fport | ||
| ) |
Definition at line 226 of file lorawan.cc.
Referenced by lorawan_heartbeat(), and lorawan_upload().