Skip to content

Instantly share code, notes, and snippets.

@NorHairil
NorHairil / DHT22node.ino
Created December 17, 2021 04:21
Code for LoRa node with DHT22 sensor
/*******************************************************************************
* Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
* Copyright (c) 2018 Terry Moore, MCCI
*
* Permission is hereby granted, free of charge, to anyone
* obtaining a copy of this document and accompanying files,
* to do whatever they want with them without any restriction,
* including, but not limited to, copying, modification and redistribution.
* NO WARRANTY OF ANY KIND IS PROVIDED.
*
@NorHairil
NorHairil / basicstation.service
Last active December 17, 2021 01:40
LoRa Gateway Setup for RHF0M301 Raspberry Pi with Basic Station
[Unit]
Description=Basic Sation TTN V3 service
[Service]
WorkingDirectory=/opt/basicstation/bin
ExecStart=/opt/basicstation/bin/station -h /etc/basicstation --radio-init=/etc/basicstation/reset_gw.sh
SyslogIdentifier=ttn-gateway
Restart=on-failure
RestartSec=5