Skip to content

Fix: Direct MQTT publish for fw request #90

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

Conversation

LeoGranierWiifor
Copy link
Contributor

In function __get_firmware, the function _publish_data is not suitable as payload will be empty ('') or the chunk size ("1024" for example). The functions called by _publish_data expects the payload to be a valid JSON.

Direct publish is a suitable fix.

@LeoGranierWiifor LeoGranierWiifor force-pushed the fix/get_firmware_direct_publish branch from 0dc7a88 to 298ccc8 Compare April 29, 2025 07:26
@LeoGranierWiifor
Copy link
Contributor Author

Hello @imbeacon,

This pull request is quite important, as it addresses and resolves an exception that occurs when changing the target firmware on the ThingsBoard platform.

Could you please review it and let me know whether it's acceptable as-is or if any changes are needed?

Thank you in advance,
Best regards,
Léo Granier
Wiifor

@LeoGranierWiifor LeoGranierWiifor force-pushed the fix/get_firmware_direct_publish branch from 298ccc8 to 48dfaf4 Compare May 12, 2025 15:46
@imbeacon
Copy link
Member

Hi @LeoGranierWiifor,

Everything looks good for me, but could you create a new PR, without force pushes in it?

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