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); |
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
/* | |
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
#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
/* | |
This is a simple example show the LoRa sended data in OLED. | |
The onboard OLED display is SSD1306 driver and I2C interface. In order to make the | |
OLED correctly operation, you should output a high-low-high(1-0-1) signal by soft- | |
ware to OLED's reset pin, the low-level signal at least 5ms. | |
OLED pins to ESP32 GPIOs via this connecthin: | |
OLED_SDA -- GPIO4 | |
OLED_SCL -- GPIO15 |
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
/* | |
This is a simple example show the LoRa sended data in OLED. | |
The onboard OLED display is SSD1306 driver and I2C interface. In order to make the | |
OLED correctly operation, you should output a high-low-high(1-0-1) signal by soft- | |
ware to OLED's reset pin, the low-level signal at least 5ms. | |
OLED pins to ESP32 GPIOs via this connecthin: | |
OLED_SDA -- GPIO4 | |
OLED_SCL -- GPIO15 |
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
/* | |
This is a simple example show the LoRa sended data in OLED. | |
The onboard OLED display is SSD1306 driver and I2C interface. In order to make the | |
OLED correctly operation, you should output a high-low-high(1-0-1) signal by soft- | |
ware to OLED's reset pin, the low-level signal at least 5ms. | |
OLED pins to ESP32 GPIOs via this connecthin: | |
OLED_SDA -- GPIO4 | |
OLED_SCL -- GPIO15 |
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
#!/bin/sh | |
#The following code demonstrates a basic command using mosquitto client to connect to public broker hivemq using port 1883 | |
# publish to topic yhtest with message "ok" | |
#it is possible to copy and paste the following line of code to Dragino Linux cli to run command . | |
mosquitto_pub -h broker.hivemq.com -p 1883 -t yhtest -m "ok" |
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 <SPI.h> | |
#include <LoRa.h> | |
#include <Console.h> | |
#include <Process.h> | |
#define PABOOST true | |
#define BAND 433E6 | |
void uploadData(); |
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 <SPI.h> | |
#include <LoRa.h> | |
#include <Console.h> | |
#include <Process.h> | |
#define PABOOST true | |
#define BAND 433E6 | |
void uploadData(); |
OlderNewer