Skip to content

Enhancements made for use with the Wombat data logger #30

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

Merged
merged 5 commits into from
Aug 21, 2023

Conversation

dajtxx
Copy link
Contributor

@dajtxx dajtxx commented Aug 18, 2023

Fixed a couple of memory bugs related to URC processing.
Enhanced support for MQTT.
Added support for FTP.
Added URC string constants.
Added getFileBlock method.

Enhanced support for MQTT.
Added support for FTP.
Added URC string constants.
Added getFileBlock method.
@PaulZC
Copy link
Collaborator

PaulZC commented Aug 18, 2023

Hi David (@dajtxx ),

Sincere thanks for this. Just working my way through it now. (It would have really helped if you could have broken this up into separate commits!)

More later...

Best wishes,
Paul

@dajtxx
Copy link
Contributor Author

dajtxx commented Aug 18, 2023 via email

Copy link
Collaborator

@PaulZC PaulZC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - thanks!
There are some small tweaks to be made.
Please have a look at the backward compatibility concerns. I'm worried most about the int to SARA_R5_mqtt_command_opcode_t change. I'll have to merge your changes to test it.

@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

Hi David,
Many thanks for the changes.
I'll run the workflow on this now, just in case it finds something - it compiles a library example on multiple platforms.
Please let me know when you've finished making changes and I will merge and test.
Best wishes,
Paul

@dajtxx
Copy link
Contributor Author

dajtxx commented Aug 21, 2023

Thanks Paul. We have a few more FTP methods coming but they're not related to these ones, so a new pull request should be ok for them. I don't plan on changing anything more in this pull request.

@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

Thanks David.
The workflow is failing on everything except ESP32C3. Weird... Probably a small change which has messed things up. Investigating...

@dajtxx
Copy link
Contributor Author

dajtxx commented Aug 21, 2023

Not a great result.

I'm having a look too. There is at least one place I missed the change from the command enum type back to an int, and a lot of String problems.

@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

Thanks David.

If you're OK picking your way through the workflow checks, I'll just leave it with you.

ESP32 only found one error - trying to sscanf into your enum (instead of an int).
Several platforms seem to have an issue with String isEmpty.

Let me know if you need me to help resolve anything and/or re-run the workflow.

Best,
Paul

Fixed enum as sscanf destination.
Replaced String.isEmpty() with String.length() < 1.
Removed odd String usage in mqttPublishTextMsg.
Removed Stream.printf() calls.
@dajtxx
Copy link
Contributor Author

dajtxx commented Aug 21, 2023

Hi Paul, can you please run this commit through the tests?

I was about the change the workflow to allow workflow_dispatch so I could run them on the fork but I think that will get pushed through to you so I stopped.

@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

Hi David,

Sure. I just added workflow_dispatch to main. Please feel free to copy and push the change from there.

Update compile-sketch.yml - add Action workflow_dispatch
@dajtxx
Copy link
Contributor Author

dajtxx commented Aug 21, 2023

Thanks, the workflow passed on my fork.

@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

Thanks David - all looks good.
I'm going to merge this into release_candidate and give it a quick check over.

@PaulZC PaulZC changed the base branch from main to release_candidate August 21, 2023 08:02
@PaulZC PaulZC merged commit 2c0a3f4 into sparkfun:release_candidate Aug 21, 2023
@PaulZC
Copy link
Collaborator

PaulZC commented Aug 21, 2023

I'm seeing a clean compile with Michael Ammann @mazgch 's HPG code - which uses setMQTTclientId internally. That's good enough for me!
Merging into main and will release shortly...
Thanks again David,
Paul

@PaulZC PaulZC mentioned this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants