Bash script for MQTTGet the source directory of a Bash script from within the script itselfHow to check if a string contains a substring in BashHow to check if a program exists from a Bash script?How do I tell if a regular file does not exist in Bash?How do I split a string on a delimiter in Bash?Extract filename and extension in BashHow to check if a variable is set in Bash?How to concatenate string variables in BashCheck existence of input argument in a Bash shell scriptEcho newline in Bash prints literal n
Single word for "refusing to move to next activity unless present one is completed."
Print the last, middle and first character of your code
What is the measurable difference between dry basil and fresh?
Can the Mage Hand cantrip be used to trip an enemy who is running away?
Switching interface VLAN ID Mid-Production
Why does this potentiometer in an op-amp feedback path cause noise when adjusted?
Do I have a right to cancel a purchase of foreign currency in the UK?
Are there any sports for which the world's best player is female?
How will law be enforced if violence becomes impossible?
How can characters/players identify that a polymorphed dragon is a dragon?
Addressing unnecessary daily meetings with manager?
Why do we need common sense in AI?
Misspelling my name on my mathematical publications
Should disabled buttons give feedback when clicked?
Are there any balance issues in allowing two half-feats to be taken without the Ability Score Increase instead of a feat?
Salt, pepper, herbs and spices
Why return a static pointer instead of an out parameter?
Integer Lists of Noah
Managing and organizing the massively increased number of classes after switching to SOLID?
Does the Pole of Angling's command word require an action?
Confirming the Identity of a (Friendly) Reviewer After the Reviews
Historical experience as a guide to warship design?
Why isn't pressure filtration popular compared to vacuum filtration?
Is there a strong legal guarantee that the U.S. can give to another country that it won't attack them?
Bash script for MQTT
Get the source directory of a Bash script from within the script itselfHow to check if a string contains a substring in BashHow to check if a program exists from a Bash script?How do I tell if a regular file does not exist in Bash?How do I split a string on a delimiter in Bash?Extract filename and extension in BashHow to check if a variable is set in Bash?How to concatenate string variables in BashCheck existence of input argument in a Bash shell scriptEcho newline in Bash prints literal n
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm new to the above topics and struggling to find the necessary material I need. I've a task to complete where I need to publish from my broker (raspberry pi 3) to a client also a (raspberry pi 3) through a zip file and unzip it at the
Client side, through base64(encoder/decoder). I am able to do this through ssh no problem but I'm unsure the protocol for implementation in MQTT. Any advice at all would be greatly appreciated thank you.
bash mqtt
add a comment |
I'm new to the above topics and struggling to find the necessary material I need. I've a task to complete where I need to publish from my broker (raspberry pi 3) to a client also a (raspberry pi 3) through a zip file and unzip it at the
Client side, through base64(encoder/decoder). I am able to do this through ssh no problem but I'm unsure the protocol for implementation in MQTT. Any advice at all would be greatly appreciated thank you.
bash mqtt
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35
add a comment |
I'm new to the above topics and struggling to find the necessary material I need. I've a task to complete where I need to publish from my broker (raspberry pi 3) to a client also a (raspberry pi 3) through a zip file and unzip it at the
Client side, through base64(encoder/decoder). I am able to do this through ssh no problem but I'm unsure the protocol for implementation in MQTT. Any advice at all would be greatly appreciated thank you.
bash mqtt
I'm new to the above topics and struggling to find the necessary material I need. I've a task to complete where I need to publish from my broker (raspberry pi 3) to a client also a (raspberry pi 3) through a zip file and unzip it at the
Client side, through base64(encoder/decoder). I am able to do this through ssh no problem but I'm unsure the protocol for implementation in MQTT. Any advice at all would be greatly appreciated thank you.
bash mqtt
bash mqtt
edited Mar 26 at 18:31
SeanC
asked Mar 26 at 1:24
SeanCSeanC
12 bronze badges
12 bronze badges
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35
add a comment |
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35
add a comment |
1 Answer
1
active
oldest
votes
1) You need to convert the zip file encoded using base 64 to binary format
2) You can publish the binary data to any topic in MQTT.
3) Another client subscribed to this topic must get the binary data and then convert to back to the zip format.
The limitation of pay load size allowed through mqtt is 256 MB. So first make sure your zip file is less than the limit specified.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348594%2fbash-script-for-mqtt%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
1) You need to convert the zip file encoded using base 64 to binary format
2) You can publish the binary data to any topic in MQTT.
3) Another client subscribed to this topic must get the binary data and then convert to back to the zip format.
The limitation of pay load size allowed through mqtt is 256 MB. So first make sure your zip file is less than the limit specified.
add a comment |
1) You need to convert the zip file encoded using base 64 to binary format
2) You can publish the binary data to any topic in MQTT.
3) Another client subscribed to this topic must get the binary data and then convert to back to the zip format.
The limitation of pay load size allowed through mqtt is 256 MB. So first make sure your zip file is less than the limit specified.
add a comment |
1) You need to convert the zip file encoded using base 64 to binary format
2) You can publish the binary data to any topic in MQTT.
3) Another client subscribed to this topic must get the binary data and then convert to back to the zip format.
The limitation of pay load size allowed through mqtt is 256 MB. So first make sure your zip file is less than the limit specified.
1) You need to convert the zip file encoded using base 64 to binary format
2) You can publish the binary data to any topic in MQTT.
3) Another client subscribed to this topic must get the binary data and then convert to back to the zip format.
The limitation of pay load size allowed through mqtt is 256 MB. So first make sure your zip file is less than the limit specified.
answered Mar 26 at 6:36
Santosh BalajiSantosh Balaji
1911 silver badge11 bronze badges
1911 silver badge11 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348594%2fbash-script-for-mqtt%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Are trying to send zip file through MQTT across your raspberry pi ?
– Santosh Balaji
Mar 26 at 5:50
Just stating a list of requirements and expecting somebody to write it for you is not how StackOverflow works. You need to show us what you have tried and explain why it doesn't work and somebody will help you fix it. Please read the doc on asking a good question stackoverflow.com/help/how-to-ask
– hardillb
Mar 26 at 7:23
Sorry if it came across that way, i'm looking for advice on the problem not someone to write it for me.
– SeanC
Mar 26 at 18:35