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. My Project
  3. Need help for trying with TTP229

Need help for trying with TTP229

Scheduled Pinned Locked Moved My Project
3 Posts 2 Posters 1.1k 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.
  • B Offline
    B Offline
    Blauhorn
    wrote on last edited by
    #1

    Re: Slim Node scene controller/ keypad

    Hello, everyone,

    I have a little problem with this. I'm trying to compile the sketch of @AWI that was used in this older article. But unfortunately it fails due to the following error message:

    error: call of overloaded 'sleep(const int&, int)' is ambiguous
    
       DVint = sleep(DV_int, FALLING);           // sleep, node wakes up on key interrupt, (sleep returns int number)
    
    K:\Arduino\arduino-1.8.5\portable\sketchbook\TTP229\TTP229.ino:81:32: note: candidates are:
    
    In file included from K:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\MySensors/MySensors.h:334:0,
    
                     from K:\Arduino\arduino-1.8.5\portable\sketchbook\TTP229\TTP229.ino:43:
    
    K:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\MySensors/core/MySensorsCore.cpp:600:8: note: int8_t sleep(uint32_t, bool)
    
     int8_t sleep(const uint32_t sleepingMS, const bool smartSleep)
    
            ^
    
    K:\Arduino\arduino-1.8.5\portable\sketchbook\libraries\MySensors/core/MySensorsCore.cpp:605:8: note: int8_t sleep(uint8_t, uint8_t, uint32_t, bool)
    
     int8_t sleep(const uint8_t interrupt, const uint8_t mode, const uint32_t sleepingMS,
    
            ^
    
    exit status 1
    call of overloaded 'sleep(const int&, int)' is ambiguous
    

    Can someone please give me a hint as to what might be wrong?
    Thank you very much

    1 Reply Last reply
    0
    • Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #2

      Hello,

      you just need to add ",0" in the list of arguments of the sleep method (sleep for 0ms = forever).
      Like this :

      DVint = sleep(DV_int, FALLING, 0);           // sleep, node wakes up on key interrupt, (sleep returns int number)
      
      1 Reply Last reply
      0
      • B Offline
        B Offline
        Blauhorn
        wrote on last edited by
        #3

        Thank you so much, that's it.

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


        12

        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