SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
lora.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "pinout.h"
4 #include "measure.h" // for rtc_ds.now().text()
5 
6 #define CLIENT_ADDRESS 1
7 #define SERVER_ADDRESS 2
8 
9 
14 #define RF95_FREQ 915.0
15 
24 void lora_init(void);
25 
37 void build_msg(float flow, char * weight, float temp, float maxtemp);
38 
45 void send_msg( void );
send_msg
void send_msg(void)
Sends a LoRa packet to the base station.
Definition: lora.cpp:83
lora_init
void lora_init(void)
Initialize the LoRa radio.
Definition: lora.cpp:17
build_msg
void build_msg(float flow, char *weight, float temp, float maxtemp)
Builds a JSON string to send over LoRa.
Definition: lora.cpp:58
pinout.h
measure.h