Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Understanding serial gateway code

Understanding serial gateway code

Scheduled Pinned Locked Moved Development
7 Posts 3 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Toyman
    wrote on last edited by
    #1

    I want to use ESP8266+NRF24L01 combo to parse messages into serial output as per Serial API, but then I want to use the output internally (for posting to cloud MQTT server).
    I can't find a part of the Serial gateway scetch responsible for serial printing or creating serial string.
    Could you help me?

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      Why aren't you using the MQTTClientGateway in development branch?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Toyman
        wrote on last edited by
        #3

        Because it requires creating topics in predefined format, e.g. "user/node/child_id/... etc", and I want to use adafruit.io that only allows "user/feedname" format

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hek
          Admin
          wrote on last edited by
          #4

          Ok, then I suggest you create your own MyGatewayTransportMQTTClient.cpp transport which uses your custom topic layout.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Toyman
            wrote on last edited by
            #5

            :-) not very helpful. I don't want anybody to re-write the code for me, I just want to understand what part of Serial Gateway code (not MQTT client code) is responsible for creating serial output.
            If it's something secret, I'll use ESP+Arduino+NRF combo and read Arduino serial output with ESP, and then parse it

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hek
              Admin
              wrote on last edited by
              #6

              Did you look at the file I pointed out? It is the one responsible for the MQTT communication. This is the file you should modify.

              I don't get why you'd need to bother with the serial output if you want to post MQTT data to adafruit.io?

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tbully
                wrote on last edited by
                #7

                I'm interested in what you learn here. I'm not much of developer (ok - I'm NOT a developer! haha!) but would like to do something similar and posted a thread about it a few months ago. I think I was in the wrong section as I never got a response.

                http://forum.mysensors.org/topic/2200/vera-mqtt-gateway

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                5

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular