This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // LoRa 9x_TX | |
| // -*- mode: C++ -*- | |
| // Example sketch showing how to create a simple messaging client (transmitter) | |
| // with the RH_RF95 class. RH_RF95 class does not provide for addressing or | |
| // reliability, so you should only use RH_RF95 if you do not need the higher | |
| // level messaging abilities. | |
| // It is designed to work with the other example LoRa9x_RX | |
| #include <SPI.h> | |
| #include <RH_RF95.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float randomFloat(float minVal, float maxVal) { | |
| return minVal + (float)random(0, 10000) / 10000.0 * (maxVal - minVal); | |
| } | |
| float tvoc = 23.6; | |
| float eCo2 = 567; | |
| float eTemp = 25.3; | |
| float eHumid = 48.9; | |
| float eBarometric = 1013.2; | |
| float altitude = 87.6; | |
| float ambientLight = 120; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // LoRa 9x_TX | |
| // -*- mode: C++ -*- | |
| // Example sketch showing how to create a simple messaging client (transmitter) | |
| // with the RH_RF95 class. RH_RF95 class does not provide for addressing or | |
| // reliability, so you should only use RH_RF95 if you do not need the higher | |
| // level messaging abilities. | |
| // It is designed to work with the other example LoRa9x_RX | |
| #include <SPI.h> | |
| #include <RH_RF95.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests, json, datetime, time | |
| shouldStart = False | |
| while not shouldStart: | |
| if datetime.datetime.now().second == 0: | |
| shouldStart = True | |
| else: | |
| print("Waiting for 0 second") |