Skip to content

Instantly share code, notes, and snippets.

View Cees-Meijer's full-sized avatar

Cees-Meijer

View GitHub Profile
@Cees-Meijer
Cees-Meijer / single_chan_pkt_fwd.cpp
Created November 2, 2019 15:52
Gateway code. Corrected
/******************************************************************************
*
* Copyright (c) 2015 Thomas Telkamp
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* 2019 - Cees Meijer. - Added a Carriage return to the JSON output so it can be read by the lorawan_gateway.py program.
* Set 'is_pizero' to true to enforce the Pi Zero. (line 103)
""""
Raspberry Pi Single Channel Gateway
Learn Guide: https://learn.adafruit.com/raspberry-pi-single-channel-lorawan-gateway
Author: Brent Rubell for Adafruit Industries
Modified for Console output only - 2019 Cees Meijer
"""
# Import Python System Libraries
import sys
import json