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. Development
  3. [SOLVED] Help needed - how to access node data in gateway code for usage in SMS alerts over GPRS?

[SOLVED] Help needed - how to access node data in gateway code for usage in SMS alerts over GPRS?

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 1.6k Views 1 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
    ruxu
    wrote on last edited by ruxu
    #1

    Hi everyone!

    I am making a monitoring system with several sensor nodes that will be setup in two versions,

    • a full system with nodes, gateway and controller with openHAB
    • a light version without a controller where the gateway has a GPRS shield. Additional code will send out SMS alert messages when certain node data conditions are met

    I have set up a node sending battery level and temperature to the gateway. Then I have tried to figure out how to get the values marked with red rectangles into variables for usage in the GPRS/SMS alert message code but so far I have not succeeded.

    Gateway.jpg
    Can anyone give me a hint in the right direction?

    R 1 Reply Last reply
    0
    • R ruxu

      Hi everyone!

      I am making a monitoring system with several sensor nodes that will be setup in two versions,

      • a full system with nodes, gateway and controller with openHAB
      • a light version without a controller where the gateway has a GPRS shield. Additional code will send out SMS alert messages when certain node data conditions are met

      I have set up a node sending battery level and temperature to the gateway. Then I have tried to figure out how to get the values marked with red rectangles into variables for usage in the GPRS/SMS alert message code but so far I have not succeeded.

      Gateway.jpg
      Can anyone give me a hint in the right direction?

      R Offline
      R Offline
      ruxu
      wrote on last edited by
      #2

      @ruxu

      As an occasional coder I finally managed to figure it out myself after about five hours of trying and Googling....

      Created some additional global extern variables in the MyGateway.cpp that takes their values from msg.sender, msg.sensor and msg.getString. Now I just have to start to code the conditional alert functions for triggering the SMS message sending...

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rocom_
        wrote on last edited by
        #3

        hello,
        are novice with mysensor and Arduino, I am interested in your solution to recover data from the nodes transmissible. you can see some examples. thank you very much.

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


        28

        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