Moved all src files into the src directory

Also fixed the "isNetworkConnected" for ESP8266
This commit is contained in:
SRGDamia1
2017-10-15 13:33:37 -04:00
parent f7bf8b1df2
commit 89203c8e25
12 changed files with 821 additions and 763 deletions

45
tools/AT_Spy/AT_Spy.ino Normal file
View File

@@ -0,0 +1,45 @@
/**************************************************************
*
* This script just listens in on the communication between an Arduino and the
* modem.
*
* TinyGSM Getting Started guide:
* http://tiny.cc/tiny-gsm-readme
*
**************************************************************/
// Set the baud rate between the modem and the board
#define BAUD_RATE 9600
// Set serial printing out the communication
#define SPY Serial
// Set serial for input from modem
#define MODEM_TX Serial1
// Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro
// #define BOARD_TX Serial1
// or AltSoftware
#include <AltSoftSerial.h>
AltSoftSerial BOARD_TX;
void setup() {
// Set console baud rate
SPY.begin(57600);
MODEM_TX.begin(BAUD_RATE);
BOARD_TX.begin(BAUD_RATE);
delay(5000);
}
void loop()
{
while (MODEM_TX.available()) {
SPY.write(MODEM_TX.read());
}
while (BOARD_TX.available()) {
SPY.write(BOARD_TX.read());
}
}