Skip to content

Commit

Permalink
Merge branch 'main' into sensor_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Praneethsvch authored Nov 11, 2020
2 parents 32d1cbc + 7e51aef commit 15f5352
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lorawan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@

static osjob_t sendjob;


unsigned int TX_INTERVAL;

unsigned char cfg_packet[7];
unsigned char lora_packet[5];
bool TX_COMPLETED = false; // Set to false on start and after sleep; is set to true when an uplink is successful
bool UPDATE_CONFIG = true; // Set to true at start and when there is a change in sensor cfg; used to send sensor cfg via uplink


void os_getArtEui (u1_t* buf) {
memcpy_P(buf, APPEUI, 8);
}
Expand Down Expand Up @@ -248,7 +246,6 @@ void onEvent (ev_t ev) {
}
}


void update_TX_INTERVAL(unsigned long dutycycle){
Serial.print("Current duty cycle is: ");
Serial.println(TX_INTERVAL);
Expand Down Expand Up @@ -301,7 +298,6 @@ void update_no_of_readings(unsigned int numb_readings){
writeToSDCard(str_downlink);
}


void process_received_downlink(void) {
/* Downlink Packet format:
|Number of readings per measurement| Sampling Rate |Sensor Mode | Duty Cycle in seconds |
Expand Down

0 comments on commit 15f5352

Please sign in to comment.