Announcement

Collapse
No announcement yet.

4Duino MQTT IoT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 4Duino MQTT IoT

    Hello everyone, I am trying to start a project with my 4Duino, what I want is an example code to be able to subscribe and publish MQTT in a broker (I have the broker working) and to see values on the screen, look for examples but the Links do not currently work, please if you can support me, thanks.

    Rolant.

  • #2
    Hi Rolant

    Welcome to the forum.

    Sorry to hear the links you found are not working. Could you please let me know the faulty links and I will see if we can get the examples for you.

    I found this that I thought might be hlpful for your MQTT project.

    https://sonyarouje.com/2016/03/15/mq...sp8266-esp-01/

    Best regards

    Paul

    Comment


    • #3
      Hello Paul

      thanks for the prompt response, in the example I see that the serial software is used, so I see that the Arduino Sketch is for the arduino ATMega32U4 (not for the ESP8266 chip) being this way, as I proceed with the code preloaded in the ESP8266 module AT command? do i have to delete it? I leave it like this ?, Thank you.

      Rolant.

      Comment


      • #4
        Hi Rolant,

        In this example, the AT-Command set is being used so you do not need to delete, it should just communicate with the ESP8266.

        best regards
        Paul

        Comment


        • #5
          Hello Paul;

          I understand, I imagine that the ATs commands are being sent through a library? Is it correct ?, since in the example code I do not appreciate any AT command, and just to clarify, the code has to be loaded in the ATMega32U4 right ?.
          In addition to this, maybe you can recommend me a video where I can see the first steps to configure 4Duino with Workshop4, thanks.

          Rolant.

          Comment


          • #6
            Hi Rolant,

            Yes the library is doing all the sending and recieiving of AT commands and the code is loaded to the 32u4.

            After following the steps in the datasheet a good place to start would be samples in Workshop. Just click on File then samples and then the 4Duino folder. These sample will load into Workshop so you can then see the code structure and the commands used to create the example.

            Best regards

            Paul

            Comment


            • #7
              Hi Paul, just one question, did you manage to make the example you recommended work, Or maybe you have another example that is tested with a 4Duino card, I need to run the ATmega32U4 with the ESP8266, thanks.?

              Best regards

              Rolant.
              Last edited by rolant; 26 November 2020, 12:15 PM.

              Comment


              • #8
                Hello everyone, I am also looking for a solution to use 4DUINO as an Mqtt client. Can anyone help with this? The GEN4-IoD-24T works fine, but the 4duino doesn't..

                Best regards, Sanyi

                Comment


                • #9
                  Hello Sanyi,

                  Welcome to the forum,

                  Sorry, we dont have an exmple for this. The ESP8266 on the 4Duino is controlled using AT-Commands and the link in the previous post shows how this could be done.

                  https://sonyarouje.com/2016/03/15/mq...sp8266-esp-01/

                  The library used on the 4Duino for the ESP8266 does make this a little easier to achieve than having to parse AT-commands.

                  Best regards

                  Paul

                  Comment

                  Working...
                  X