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. General Discussion
  3. The basics of MySensors?

The basics of MySensors?

Scheduled Pinned Locked Moved General Discussion
11 Posts 2 Posters 5.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.
  • marexM marex

    I have a question regarding the API to access the sensor nRF24L01.
    What happened to the function RF24_openReadingPipe?
    It used to be part of the API.
    Has it removed because it is obsolete.
    What it is the right way to read data from a pipe?

    mfalkviddM Offline
    mfalkviddM Offline
    mfalkvidd
    Mod
    wrote on last edited by
    #2

    @marex I don't believe MySensors has had such a function. Sounds way too nrf24-specific, MySensors abstracts away the transport. Where did you find it?

    1 Reply Last reply
    0
    • marexM Offline
      marexM Offline
      marex
      wrote on last edited by
      #3

      https://github.com/mysensors/MySensors/blob/development/drivers/RF24/RF24.h

      1 Reply Last reply
      0
      • marexM Offline
        marexM Offline
        marex
        wrote on last edited by
        #4

        I connected my NodeMCU to a nRF24L01 as explained at
        https://www.mysensors.org/build/esp8266_gateway

        I don´t know how to listen to messages from a pipe.

        The corresponding NR24 API for Arduino supports the function openReadingPipe:
        https://www.mysensors.org/build/esp8266_gateway

        mfalkviddM 1 Reply Last reply
        0
        • marexM marex

          I connected my NodeMCU to a nRF24L01 as explained at
          https://www.mysensors.org/build/esp8266_gateway

          I don´t know how to listen to messages from a pipe.

          The corresponding NR24 API for Arduino supports the function openReadingPipe:
          https://www.mysensors.org/build/esp8266_gateway

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #5

          @marex Sending and receiving messages with MySensors is described at https://www.mysensors.org/download/sensor_api_20#sending-data and https://www.mysensors.org/download/sensor_api_20#handling-incoming-radio-messages

          The low-level functions of the different transports are not part of MySensors. Why do you want to use them directly?

          marexM 1 Reply Last reply
          0
          • mfalkviddM mfalkvidd

            @marex Sending and receiving messages with MySensors is described at https://www.mysensors.org/download/sensor_api_20#sending-data and https://www.mysensors.org/download/sensor_api_20#handling-incoming-radio-messages

            The low-level functions of the different transports are not part of MySensors. Why do you want to use them directly?

            marexM Offline
            marexM Offline
            marex
            wrote on last edited by
            #6

            @mfalkvidd I´m just looking for an easy way of receiving temperature data transmitted by 3 Arduino Nano connected to a NRF24.
            I´d like to use a NodeMCU connected to a NRF24 to receive the temperature data from the 3 Arduino Nano and make them available over WifI to my cell phone. Can I use the mysensor library to receive data transmitted using a different library (https://github.com/TMRh20/RF24/blob/master/RF24.h)? Can it work in principle? Or should the transmitter use the mysensor library too?

            mfalkviddM 1 Reply Last reply
            0
            • marexM marex

              @mfalkvidd I´m just looking for an easy way of receiving temperature data transmitted by 3 Arduino Nano connected to a NRF24.
              I´d like to use a NodeMCU connected to a NRF24 to receive the temperature data from the 3 Arduino Nano and make them available over WifI to my cell phone. Can I use the mysensor library to receive data transmitted using a different library (https://github.com/TMRh20/RF24/blob/master/RF24.h)? Can it work in principle? Or should the transmitter use the mysensor library too?

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #7

              @marex you could probably build something that decodes MySensors if you want to, but that would essentially be re-implementing MySensors. It could be a fun challenge, if you are into that sort of thing.

              But if you just want to get things working, load the ESP8266 gateway sketch on your ESP8266/NodeMCU and use the temperature example on your Nanos.

              1 Reply Last reply
              0
              • marexM Offline
                marexM Offline
                marex
                wrote on last edited by
                #8

                That would work for a local temperature sensor connected directly to the NodeMcu.
                What I would like to achieve is different. I would like to use a NodeMcu as gateway.
                It should be able to receive data from different sensors in my house.
                For the radio communication I´d like to use an inexpensive NRF24 transceiver.

                mfalkviddM 1 Reply Last reply
                0
                • marexM marex

                  That would work for a local temperature sensor connected directly to the NodeMcu.
                  What I would like to achieve is different. I would like to use a NodeMcu as gateway.
                  It should be able to receive data from different sensors in my house.
                  For the radio communication I´d like to use an inexpensive NRF24 transceiver.

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #9

                  @marex then what I linked to is exactly what you want.

                  marexM 1 Reply Last reply
                  0
                  • mfalkviddM mfalkvidd

                    @marex then what I linked to is exactly what you want.

                    marexM Offline
                    marexM Offline
                    marex
                    wrote on last edited by
                    #10

                    @mfalkvidd I actually use a different kind of temperature/humidity sensor. I will adjust the Arduino sketch and try. Thanks a lot.

                    mfalkviddM 1 Reply Last reply
                    0
                    • mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by mfalkvidd
                      #11

                      Discussion continued at https://forum.mysensors.org/topic/5080/the-basics-of-mysensors-continued/ (couldn't figure out how to fork such a long discussion into just one topic, the forum software doesn't seem to handle that. Sorry.)

                      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


                      14

                      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