Delete _tcpTTN.ino

This commit is contained in:
IoTThinks.com 2020-05-17 08:43:54 +07:00 committed by GitHub
parent 2bd034b47e
commit c32376c2ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 65 deletions

View File

@ -1,65 +0,0 @@
// 1-channel LoRa Gateway for ESP8266 and ESP32
// Copyright (c) 2016-2020 Maarten Westenberg version for ESP8266
//
// based on work done by Thomas Telkamp for Raspberry PI 1ch gateway
// and many others.
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the MIT License
// which accompanies this distribution, and is available at
// https://opensource.org/licenses/mit-license.php
//
// NO WARRANTY OF ANY KIND IS PROVIDED
//
// Author: Maarten Westenberg (mw12554@hotmail.com)
//
// Description:
// _tcpTTN.ino:
//
// This file contains the tcp specific code enabling to receive
// and transmit packages/messages to the TTN server using their new protocol.
//
// The TTN code has been developed as an alternative to the Semtech UDP code.
// According to the TTN website the Semtech gateway interface code is less secure and
// works on UDP which is less reliable. The new protocol of TTN should solve these issues.
//
// Initial look at the code of TTN shows that it is overly complex and not written for C++
// or other languages (except for Go). The old Semtech protocol may be too simple but
// the new code is a brainiac.
// As of half 2018 the code is on hold. Some does work, but acording to the documentation
// it should be simpler to use.
//
// ========================================================================================
#if defined(_TTNROUTER)
#if defined(_UDPROUTER)
# error "Error: Please undefine _UDPROUTER if you like to use _TTNROUTER"
#endif
// The following functions ae defined in this modue:
//
// int readTtn(int Packetsize)
// int sendTtn(IPAddress server, int port, uint8_t *msg, int length)
// bool connectTtn()
// void pullData()
// void sendstat();
// Add gateway code of functions here
void connectTtn() {
# error "Error: Please define and use _UDPROUTER instead of _TTNROUTER"
}
int readTtn(int Packetsize) {
#error "Error: Please define and use _UDPROUTER instead of _TTNROUTER"
}
int sendTtn(IPAddress server, int port, uint8_t *msg, int length) {
#error "Error: Please define and use _UDPROUTER instead of _TTNROUTER"
}
#endif// _TTNROUTER