ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
lorawan.cc File Reference
#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)
 

Detailed Description

Author
Tyler Potyondy
John Madden (jmadd.nosp@m.en17.nosp@m.3@pm..nosp@m.me)

Definition in file lorawan.cc.

Macro Definition Documentation

◆ LORAWAN_NONCES_ADDR

#define LORAWAN_NONCES_ADDR   2200

Definition at line 20 of file lorawan.cc.

Function Documentation

◆ lorawan_heartbeat()

int lorawan_heartbeat ( void  )

Definition at line 281 of file lorawan.cc.

References lorawan_upload_fport().

Referenced by main().

◆ lorawan_init()

int lorawan_init ( void  )

Definition at line 39 of file lorawan.cc.

References Region, state, and subBand.

Referenced by main().

◆ lorawan_join()

◆ lorawan_timesync()

int lorawan_timesync ( void  )

Definition at line 195 of file lorawan.cc.

References set_epoch(), and state.

Referenced by main().

◆ lorawan_upload()

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().

◆ lorawan_upload_fport()

int lorawan_upload_fport ( uint8_t *  buffer,
int  length,
int  fport 
)

Definition at line 226 of file lorawan.cc.

References buffer, and state.

Referenced by lorawan_heartbeat(), and lorawan_upload().