Browse Source

update examples to fix action for uno

Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
dependabot/github_actions/actions/checkout-4
Sara Damiano 3 years ago
parent
commit
8766eac978
11 changed files with 53 additions and 22 deletions
  1. +2
    -2
      .github/workflows/build_examples.yaml
  2. +5
    -2
      examples/AllFunctions/AllFunctions.ino
  3. +5
    -2
      examples/BlynkClient/BlynkClient.ino
  4. +5
    -2
      examples/FileDownload/FileDownload.ino
  5. +5
    -2
      examples/HttpClient/HttpClient.ino
  6. +5
    -2
      examples/HttpsClient/HttpsClient.ino
  7. +6
    -2
      examples/MqttClient/MqttClient.ino
  8. +5
    -2
      examples/WebClient/WebClient.ino
  9. +5
    -2
      tools/AT_Debug/AT_Debug.ino
  10. +5
    -2
      tools/Diagnostics/Diagnostics.ino
  11. +5
    -2
      tools/FactoryReset/FactoryReset.ino

+ 2
- 2
.github/workflows/build_examples.yaml View File

@ -16,9 +16,8 @@ jobs:
examples/FileDownload, examples/FileDownload,
examples/MqttClient, examples/MqttClient,
examples/WebClient, examples/WebClient,
tools/AT_Debug,
tools/test_build,
tools/Diagnostics, tools/Diagnostics,
tools/FactoryReset,
] ]
modem: modem:
[ [
@ -86,5 +85,6 @@ jobs:
echo "${{ env.LIBRARY_INSTALL_SOURCE }}" echo "${{ env.LIBRARY_INSTALL_SOURCE }}"
pio lib --global install ${{ env.LIBRARY_INSTALL_SOURCE }} pio lib --global install ${{ env.LIBRARY_INSTALL_SOURCE }}
pio lib --global install 89 415 1202 1286 pio lib --global install 89 415 1202 1286
sed -i 's/\/\/ #define TINY_GSM_MODEM_SIM800/#define TINY_GSM_MODEM_SIM800/'
platformio ci --project-option='build_flags=-D ${{ env.TINYGSM_MODEM_TO_USE }}' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev platformio ci --project-option='build_flags=-D ${{ env.TINYGSM_MODEM_TO_USE }}' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev
pio lib --global uninstall TinyGSM pio lib --global uninstall TinyGSM

+ 5
- 2
examples/AllFunctions/AllFunctions.ino View File

@ -35,11 +35,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
// #include <SoftwareSerial.h>
// SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// See all AT commands, if wanted // See all AT commands, if wanted
// #define DUMP_AT_COMMANDS // #define DUMP_AT_COMMANDS


+ 5
- 2
examples/BlynkClient/BlynkClient.ino View File

@ -56,11 +56,14 @@
#define SerialMon Serial #define SerialMon Serial
// Hardware Serial on Mega, Leonardo, Micro // Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Your GPRS credentials, if any // Your GPRS credentials, if any


+ 5
- 2
examples/FileDownload/FileDownload.ino View File

@ -39,11 +39,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Increase RX buffer to capture the entire response // Increase RX buffer to capture the entire response
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)


+ 5
- 2
examples/HttpClient/HttpClient.ino View File

@ -44,11 +44,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Increase RX buffer to capture the entire response // Increase RX buffer to capture the entire response
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)


+ 5
- 2
examples/HttpsClient/HttpsClient.ino View File

@ -37,11 +37,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Increase RX buffer to capture the entire response // Increase RX buffer to capture the entire response
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)


+ 6
- 2
examples/MqttClient/MqttClient.ino View File

@ -53,11 +53,15 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
#endif
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// See all AT commands, if wanted // See all AT commands, if wanted
// #define DUMP_AT_COMMANDS // #define DUMP_AT_COMMANDS


+ 5
- 2
examples/WebClient/WebClient.ino View File

@ -34,11 +34,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Increase RX buffer to capture the entire response // Increase RX buffer to capture the entire response
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)


+ 5
- 2
tools/AT_Debug/AT_Debug.ino View File

@ -29,11 +29,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
#define TINY_GSM_DEBUG SerialMon #define TINY_GSM_DEBUG SerialMon


+ 5
- 2
tools/Diagnostics/Diagnostics.ino View File

@ -35,11 +35,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Increase RX buffer to capture the entire response // Increase RX buffer to capture the entire response
// Chips without internal buffering (A6/A7, ESP8266, M590) // Chips without internal buffering (A6/A7, ESP8266, M590)


+ 5
- 2
tools/FactoryReset/FactoryReset.ino View File

@ -32,11 +32,14 @@
// Set serial for AT commands (to the module) // Set serial for AT commands (to the module)
// Use Hardware Serial on Mega, Leonardo, Micro // Use Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1 #define SerialAT Serial1
// or Software Serial on Uno, Nano // or Software Serial on Uno, Nano
//#include <SoftwareSerial.h>
//SoftwareSerial SerialAT(2, 3); // RX, TX
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
#include <StreamDebugger.h> #include <StreamDebugger.h>
StreamDebugger debugger(SerialAT, SerialMon); StreamDebugger debugger(SerialAT, SerialMon);


Loading…
Cancel
Save