Skip to content
  • 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. How to force MySensors to start setup and loop before connect to Gateway?
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

How to force MySensors to start setup and loop before connect to Gateway?

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 958 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.
  • G Offline
    G Offline
    gryzli133
    wrote on last edited by
    #1

    Dear All,

    the reliability is the key of the system for me. So I decide to have local functions, that do not need gateway/HUB to be usable. I use Domoticz. In my primary setup, there is my Domoticz server on RPi 3 and multiple Arduino Mega as Serial Gateway. These Mega are controlling lights and Roller Shutters in my house. Every light/blind has it own button, connected to Mega's Input pin. The same Mega is controlling also the relays. The adventage is that no metter if there is Internet or even if Domoticz Server is running, the local buttons and relays are always working - domoticz is just an "extra feature" for my system.

    The problem is, when I would like to add some extra devices connected by nrf24l+ and have the same functionality (this means, that the local function is always available, also without connection to gateway), there is a problem. As long, as the slave cannot reach the gateway, the arduino's loop function is not running. Is it possible to get the loop function running even without the gateway on the slave?

    1 Reply Last reply
    1
    • rozpruwaczR Offline
      rozpruwaczR Offline
      rozpruwacz
      wrote on last edited by
      #2

      add this line before MySensors.h:
      #define MY_TRANSPORT_WAIT_READY_MS 1

      1 Reply Last reply
      1
      • G Offline
        G Offline
        gryzli133
        wrote on last edited by
        #3

        It works, thank you ;-)

        1 Reply Last reply
        1
        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.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
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular