-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CI #4
Fix CI #4
Conversation
d449904
to
e3f8a74
Compare
# added in this fork | ||
TINY_GSM_MODEM_A7608, | ||
TINY_GSM_MODEM_A7670, | ||
TINY_GSM_MODEM_SIM7020, | ||
TINY_GSM_MODEM_SIM7672 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new implementations in CI
@@ -87,5 +97,5 @@ jobs: | |||
echo "${{ env.LIBRARY_INSTALL_SOURCE }}" | |||
pio lib --global install ${{ env.LIBRARY_INSTALL_SOURCE }} | |||
sed -i 's/\/\/ #define TINY_GSM_MODEM_SIM800/#define TINY_GSM_MODEM_SIM800/g' ${{ matrix.example }}/* | |||
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=esp32dev --board=esp32s3box |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed other boards which are not compatible and not used by Lilygo
"platforms": "*", | ||
"frameworks": "arduino", | ||
"platforms": [ | ||
"espressif32" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this fork compatibility since other board compatibility is not ensured in new implementations
@@ -35,6 +35,7 @@ typedef TinyGsmSim7000::GsmClientSim7000 TinyGsmClient; | |||
#include "TinyGsmClientSIM7020.h" | |||
typedef TinyGsmSim7020 TinyGsm; | |||
typedef TinyGsmSim7020::GsmClientSim7020 TinyGsmClient; | |||
typedef TinyGsmSim7020::GsmClientSecureSim7020 TinyGsmClientSecure; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test was failing because 7020 is declared (macro) to support SSL, but the typedef was missing
@@ -508,7 +508,7 @@ class TinyGsmA7670 : public TinyGsmModem<TinyGsmA7670>, | |||
waitResponse(); | |||
} | |||
sendAT(GF("+CGNSSPWR=1")); | |||
if (waitResponse(10000UL,"+CGNSSPWR: READY!") != 1) { return false; } | |||
if (waitResponse(10000UL, GF("+CGNSSPWR: READY!")) != 1) { return false; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation failure here: I guess you meant GF
? Function called was the one with a String buffer for the returned value.
@@ -488,7 +488,7 @@ class TinyGsmSim7600 : public TinyGsmModem<TinyGsmSim7600>, | |||
} | |||
sendAT(GF("+CGPS=0")); | |||
if (waitResponse() != 1) { return false; } | |||
return waitResponse(30000UL,"+CGPS: 0") == 1; | |||
return waitResponse(30000UL,GF("+CGPS: 0")) == 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation failure here: I guess you meant GF
? Function called was the one with a String buffer for the returned value.
uint8_t status = 0; | ||
modem.getGPS(&status, &latitude, &longitude); | ||
modem.getGPS(&status, &latitude, &longitude, &speed, &alt, &vsat, &usat, &acc, &year, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compilation failure also here: the test was not adapted following the addition of the status parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lewisxhe : could you please have a look at this PR ?
Thanks!
@mathieucarbou Sorry, if you don't @ me, I may never look at this fork, haha, I don't follow this fork, I forked it from @vshymanskyy to add functions exclusive to the LilyGo board, just for the convenience of users who purchase LilyGo , since @vshymanskyy did not promote the development of TinyGSM in the later period, I did not submit a PR. |
Thanks! Yes I understood that also: the original repo seems not updated and it makes sense to keep Lilygo additions / updates here. That is why I intended to send Prs here because I am using 2 Lilygo boards (SIM7080G and T-A7670G) and I saw some issues worth to fix in this repo for Lilygo users. That's also why I focused the CI to only Lilygo boards. |
This PR activates CI and fix some issues which were preventing the project from compiling.
You can see the build passing in my fork here: https://github.com/mathieucarbou/lewisxhe-TinyGSM/actions
Here are below some comments