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. Troubleshooting
  3. RFM69 temperature and how to check RFM69 is set to high power

RFM69 temperature and how to check RFM69 is set to high power

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 4.8k 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.
  • carlierdC Offline
    carlierdC Offline
    carlierd
    wrote on last edited by
    #1

    Hello,

    I am using RFM69HW and found how to use high power reading this post. I am now want to get the RFM69 temperature in my sketch and check if I am using high power mode.

    I found in the RFM69 library useful methods, but I don't know how to call them in my sketch ... I tried radio.readTemperature but it's not correct.

    Do you have an idea ?
    I am also interesting in getting the RSSI !

    Thanks,

    David.

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

      Guess you would have to add something like this in your sketch:

      extern RFM69 _radio;

      And use use _radio.readTemperature()

      (in the development branch)

      In 1.5 the radio-object is a private member of the MySensors radio-driver class so you'd have to make it public to have access to it.

      carlierdC 1 Reply Last reply
      0
      • hekH hek

        Guess you would have to add something like this in your sketch:

        extern RFM69 _radio;

        And use use _radio.readTemperature()

        (in the development branch)

        In 1.5 the radio-object is a private member of the MySensors radio-driver class so you'd have to make it public to have access to it.

        carlierdC Offline
        carlierdC Offline
        carlierd
        wrote on last edited by carlierd
        #3

        Thanks @hek !

        I modified the file "MyTransportRFM69.h" and moved RFM69 radio from private to public.

        I then added extern RFM69 _radio; in my sketch.
        And in the loop method, I also added _radio.readTemperature().

        But the compilation failed:

        SerialGateway.cpp.o: In function `loop':
        /Users/carlierd/SerialGateway.ino:130: undefined reference to `_radio'
        /Users/carlierd/SerialGateway.ino:130: undefined reference to `_radio'
        collect2: error: ld returned 1 exit status
        

        For the moment I prefer using the stable branch until I get something working.

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

          You're mixing the two solutions.

          In 1.5 you would reach the public radio object by

          radio.radio.readTemperature()

          1 Reply Last reply
          0
          • carlierdC Offline
            carlierdC Offline
            carlierd
            wrote on last edited by
            #5

            Sorry @hek but it's still not clear for me ;)

            I am using 1.5, so I assume that I have to:

            • put radio as public in MyTransportRFM69.h
            • add radio.radio.readTemperature() in my sketch

            Thanks !

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

              Yep, should work.

              1 Reply Last reply
              0
              • carlierdC Offline
                carlierdC Offline
                carlierd
                wrote on last edited by
                #7

                I got this error during compilation:

                SerialGateway.ino: In function 'void loop()':
                SerialGateway:128: error: 'radio' was not declared in this scope
                'radio' was not declared in this scope
                

                Any idea ?

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  transport.radio.getTemperature() then? O

                  1 Reply Last reply
                  0
                  • carlierdC Offline
                    carlierdC Offline
                    carlierd
                    wrote on last edited by
                    #9

                    It's perfect !! Thanks !

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    16

                    Online

                    11.7k

                    Users

                    11.2k

                    Topics

                    113.1k

                    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