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. Could use a bid help to get started

Could use a bid help to get started

Scheduled Pinned Locked Moved Troubleshooting
24 Posts 3 Posters 5.8k Views 2 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.
  • R Offline
    R Offline
    Rene046
    wrote on last edited by
    #13

    ok done that, opened the sketch sample for dht.
    compile and i get :

    H:\WINDOW~1\Temp\arduino_modified_sketch_660970\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
    
    DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
    
       metric = getConfig().isMetric;
    
                          ^
    
    Multiple libraries were found for "DHT.h"
     Used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT
     Not used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT-sensor-library-master
    exit status 1
    'getConfig' was not declared in this scope
    
    
    mfalkviddM 1 Reply Last reply
    0
    • R Rene046

      ok done that, opened the sketch sample for dht.
      compile and i get :

      H:\WINDOW~1\Temp\arduino_modified_sketch_660970\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
      
      DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
      
         metric = getConfig().isMetric;
      
                            ^
      
      Multiple libraries were found for "DHT.h"
       Used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT
       Not used: H:\WINDOWS GEBRUIKERS\MIJN_DOCUMENTEN\Arduino\libraries\DHT-sensor-library-master
      exit status 1
      'getConfig' was not declared in this scope
      
      
      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by mfalkvidd
      #14

      @Rene046 There are two DHT folders. Delete the DHT folder that didn't come from the MySensorsArduinoExamples zip file.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Rene046
        wrote on last edited by
        #15

        ok now im left with this

        H:\WINDOW~1\Temp\arduino_modified_sketch_225110\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
        
        DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
        
           metric = getConfig().isMetric;
        
                              ^
        
        exit status 1
        'getConfig' was not declared in this scope
        
        
        mfalkviddM 1 Reply Last reply
        0
        • R Rene046

          ok now im left with this

          H:\WINDOW~1\Temp\arduino_modified_sketch_225110\DhtTemperatureAndHumiditySensor.ino: In function 'void presentation()':
          
          DhtTemperatureAndHumiditySensor:85: error: 'getConfig' was not declared in this scope
          
             metric = getConfig().isMetric;
          
                                ^
          
          exit status 1
          'getConfig' was not declared in this scope
          
          
          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #16

          @Rene046 see https://forum.mysensors.org/topic/5841/getconfig-was-not-declared-in-this-scope-v2-1-1-fixed/2
          (change getConfig to getControllerConfig)

          1 Reply Last reply
          1
          • R Offline
            R Offline
            Rene046
            wrote on last edited by
            #17

            thanks it works... i love you ..lol

            why do they change basic commands.... this make it hard to use.......

            Like this command and why make from mysensor.h mysensors.h.

            i also looked inside domoticz and i got data

            thank you very very much

            mfalkviddM 1 Reply Last reply
            0
            • R Rene046

              thanks it works... i love you ..lol

              why do they change basic commands.... this make it hard to use.......

              Like this command and why make from mysensor.h mysensors.h.

              i also looked inside domoticz and i got data

              thank you very very much

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

              @Rene046 the change from MySensor to MySensors is because the Arduino IDE requires the .h file to have exactly the same name as the library. That was not the case when MySensors was created, but happened some time in 2015 I think. So to comply with Arduino IDE rules, it had to be changed.

              The reason for changing getConfig is logged at https://github.com/mysensors/MySensors/issues/736 but I am not sure why and the fix (https://github.com/mysensors/MySensors/pull/737 ) does not explain why either, but seems to be due to a mistake in https://github.com/mysensors/MySensors/commit/92cbd2ac8f49fe2f8cb25726e08aac9ecd597b84

              1 Reply Last reply
              0
              • R Offline
                R Offline
                Rene046
                wrote on last edited by
                #19

                ok,

                At least i can now experiment with other sensors for my weather station project.
                i now all electronics are working, i saved this sketch and commented those changes.
                Again thank you for getting me started.

                mfalkviddM 1 Reply Last reply
                1
                • R Rene046

                  ok,

                  At least i can now experiment with other sensors for my weather station project.
                  i now all electronics are working, i saved this sketch and commented those changes.
                  Again thank you for getting me started.

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

                  @Rene046 you're welcome. Great that you got it working.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Rene046
                    wrote on last edited by
                    #21

                    can i ask another question....

                    Im trying to add a battery sense pin to the sketch. they use gw. commands, are those also changed in the new version ?they are not recognized....

                    They serail monitor shows me the voltage but how do i send it as and child to domoticz.

                    mfalkviddM 1 Reply Last reply
                    0
                    • R Rene046

                      can i ask another question....

                      Im trying to add a battery sense pin to the sketch. they use gw. commands, are those also changed in the new version ?they are not recognized....

                      They serail monitor shows me the voltage but how do i send it as and child to domoticz.

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

                      @Rene046 most commands were simplified in MySensors 2.0. If the example you found uses gw.send(), remove gw. and just use send().

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        Rene046
                        wrote on last edited by
                        #23

                        Thanks Mikael,

                        could i find those new commands somewhere

                        mfalkviddM 1 Reply Last reply
                        0
                        • R Rene046

                          Thanks Mikael,

                          could i find those new commands somewhere

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

                          @Rene046 yes they are all documented in the api. https://www.mysensors.org/download/sensor_api_20

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


                          10

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.0k

                          Posts


                          Copyright 2019 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