Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pybytes MQTT Connection & topics

    Scheduled Pinned Locked Moved Pybytes IoT platform
    9 Posts 2 Posters 89 Views 3 Watching
    Loading More Posts
    • 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.
    • C Offline
      Clyde Bess
      last edited by

      I am using pybytes for collecting Data of an GPy.
      Main Problem I have collecting data with node Red or any other connection. I found only 2 posts of how to connect to the mqtt port. One only said u need the username (email address)
      and as Passwort the device ID
      On a other Post I found out you need an „u“ in front of the Device ID.. if I establish a connection there is no way to subscribe to an topic..
      it would be great if the topic that is showed on top of the pybytes platform would work as:
      [devicename]/[device]/[signalname]
      Or just [signalname]/ or.. [signalNumber]/
      The connected node red is getting to many empty or not needed messages from the pybytes platform if there is no way to subscribe only to needed topics..

      Have a great day @all

      1 Reply Last reply Reply Quote 0
      • C Offline
        Clyde Bess
        last edited by

        no one who has the same problem?

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gijs
          last edited by

          Im having a hard time understanding what you're trying to achieve. You say you're using pybytes, but then you explain an issue with node red?

          You could use the separate mqtt library provided in the pycom libraries repo: https://github.com/pycom/pycom-libraries/tree/master/lib/mqtt

          Or explain what exactly you're trying to achieve

          Best,
          Gijs

          1 Reply Last reply Reply Quote 0
          • C Offline
            Clyde Bess
            last edited by

            Hey Gijs :) I AM SORRYY :)

            right now my setup is:

            GPY ---> Pybytes SIG1, ..2, ...3 -- (mqtt.pybytes.pycom.io)---> Node Red --- > Push Notification Service

            so my problem is: mqtt.pybytes.pycom.io to any subscribing device

            How do I subscribe to a Topic on mqtt.pybytes.pycom.io ?? is there any topic syntax I can use?
            ..to select/subscribe to only one Signal like: SIG1?

            The only topic that works is u+DeviceID as topic.. and that gives me everything.. from the actual signal (strangely formatted payloads like ">Device started3" instead of "Device started" )

            I hope I made it a little easier now.. ? :)

            Thanks in advanced
            Clyde

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gijs
              last edited by

              No worries,
              Im not sure the Pybytes MQTT is supposed to work that way though, I'd recommend using the webhook integration in pybytes to forward data to your node red application over HTTP/JSON. You can specify what information you want to include and for which devices

              Let me know if that helps you,
              Gijs

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Clyde Bess @Gijs
                last edited by

                @Gijs thanks for your respond.
                I gave it a try and data is transmitted like a charm.
                The only thing I can’t find is a way how to select what signals I want to have transmitted.

                I only need Signal1 to be send to the Webhook..
                the other Signals are only debugging and shouldn’t be send to the Webhook
                I can select the devices I want to transmit to the Webhook but not the Signals.

                Kind regards,
                Clyde

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gijs
                  last edited by

                  Ah I thought there was an option available to select only specific signals, but it appears Im mistaken. Is it a possibility for you to filter only the applicable data on the NodeRed end? I'll check with the Pybytes team if there's some hidden presets available for that perhaps.

                  Best,
                  Gijs

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Clyde Bess @Gijs
                    last edited by

                    @Gijs that would be awesome if I could only select the signals in pybytes - otherwise I have to use another 3. party service in between to filter.
                    *Pushing thumps for the pybytes dev team :)

                    Kind regards and have nice Weekend
                    Clyde

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gijs
                      last edited by

                      I can imagine, sorry for the inconvenience. I submitted a feature request with the Pybytes team to be able to do this. If there's more people looking for this, it would bring higher up the list of course :)

                      Thanks! Have a nice weekend yourself
                      Gijs

                      1 Reply Last reply Reply Quote 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
                      • 1 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom