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. add a sensor in ethernet gateway

add a sensor in ethernet gateway

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 764 Views 3 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.
  • fmarinF Offline
    fmarinF Offline
    fmarin
    wrote on last edited by
    #1

    may be it's not a best practice, but i have read that with mysensors V2, we can add sensors in gateway ...

    so, i am testing a configuration with

    • arduino mega + ethernet shield + temp sensors
    • raspberry pi2 with controler domoticz (the last stable version)

    First, i have configured arduino with "ethernet gateway sketch example" ; i have no Radio/Wireless Transceivers so i have commented "#define MY_RADIO_NRF24" (otherwise i have compilation error)

    My controler work fine, it is connected with my gateway (i read that on my logs), and the debug on my gateway indicate it's working

    Now, i want to add a sensor on my gateway and

    1. i add variables
      #define CHILD_ID_DHT_TEMP 0
      MyMessage dhtTempMsg(CHILD_ID_DHT_TEMP, V_TEMP);
    2. i add a "presentation function"
      void presentation() {
      sendSketchInfo("mega eth - temp sensor", "1.01");
      present(CHILD_ID_DHT_TEMP, S_TEMP);
      }
    3. in my loop, i add send message (t and lasDhtT are float variables)
      if (t != lastDhtT)
      {
      send(dhtTempMsg.set(t, 1));
      lastDhtT = t;
      }

    it seems that it's right, but my controler don't find the temp sensor ...

    if i have a good comprehensive view of schema, sensor is attached to a node; it appears at the gateway which transmits it into controler
    it seems that my gateway don't find the sensor ...

    Where have I made an error ?

    thanks for your help
    regards
    fred

    fred

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


    25

    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