This file contains 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
#include <SoftwareSerial.h> | |
SoftwareSerial lora(2, 3); //TX, RX | |
// gnd SET_A and SET_B for Normal Mode (Send and Receive) | |
void setup() { | |
Serial.begin(9600); | |
lora.begin(9600); | |
} |
This file contains 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 Simple Arduino Server : | |
Support Devices: | |
* LoRa Mini | |
* LoRa Shield + Arduino; | |
* LoRa GPS Shield + Arduino. | |
Example sketch showing how to create a simple messageing server, | |
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 |
This file contains 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 Simple Client for Arduino : | |
Support Devices: LoRa Shield + Arduino | |
Example sketch showing how to create a simple messageing client, | |
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 LoRa Simple Server |
This file contains 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
#include <ESP8266WiFi.h> | |
#include <DHT.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define dht_dpin 13 // D7, Digital Pin sensor is connected to | |
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec | |
#define ONE_WIRE_BUS 2 // DS18B20 on arduino pin2 corresponds to D4 on physical board | |
OneWire oneWire(ONE_WIRE_BUS); |
NewerOlder