• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Compiler error due to SimpleTimer library

    scheduled pinned locked moved MyControllerDevice (ESP8266)
    4 posts 2 posters 1.6k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • F offline
      fsgrazzutti
      global:last-edited-by,

      Hi @jkandasa,

      I get this error:

      MyController.cpp: 158:9: error: 'class SimpleTimer' has no member named 'run
      158 | timer.run(); \ SimpleTimer is working
      | ^~~

      But I could not find any library that has this member.

      Any help is much appreciated

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @fsgrazzutti
        global:last-edited-by,

        Hi @fsgrazzutti, can you try with https://playground.arduino.cc/Code/SimpleTimer/?
        Please note this library support available only in MyController v1.

        F one-reply-to-this-post last-reply-time reply quote 0
        • F offline
          fsgrazzutti @jkandasa
          global:last-edited-by,

          @jkandasa ,
          thanks a lot for the prompt answer.

          Fun fact, this is the library I use, and there's no run() method, but it appears in the example on the page you linked.

          I'm confused now.

          Cheers,
          Franco

          jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @fsgrazzutti
            global:last-edited-by,

            @fsgrazzutti download the library from https://github.com/schinken/SimpleTimer

            one-reply-to-this-post last-reply-time reply quote 0
            • first-post
              last-post

            0

            online

            644

            users

            532

            topics

            3.4k

            posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization