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;








-1















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.










share|improve this question
























  • 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

















-1















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.










share|improve this question
























  • 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













-1












-1








-1








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer



























      0














      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.






      share|improve this answer

























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 6:36









        Santosh BalajiSantosh Balaji

        1911 silver badge11 bronze badges




        1911 silver badge11 bronze badges


















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현