[SOLVED] Help needed - how to access node data in gateway code for usage in SMS alerts over GPRS?
-
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.
-
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...
-
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.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Adding Listen only device to my system.
Development • 2 days ago • dpcons a day ago -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
MYSController with MQTT Gateway (via Node Red)
Development • 11 Aug 2024, 22:35 • slt1 11 Aug 2024, 22:35 -
[mysensors] Not a valid message: invalid literal for int() with base 10: '\x00\x000'
Development • 18 Sept 2024, 20:34 • kiesel 20 Sept 2024, 08:28