Tweets by @TartsSensors
Welcome › Forums › Tarts for Raspberry Pi › Register Multiple Sensors
This topic contains 2 replies, has 3 voices, and was last updated by Errol 2 years, 4 months ago.
How can I add more than one sensor to my project? I loop over a list of sensors and call the RegisterSensor function but no success.
Can the function be called anywhere in the code or only in the setup()?
In general, yes, this is the correct approach. In normal operation the gateway is constantly looking for serial data, so the command can be sent anytime the gateway is powered on and running.
Is the sensor being properly defined before it is being registered? The sensor does have to be given a specific sensor type (Temperature, PIR, Open/Close) before it can be registered.
Is it possible to get an code example on how this is done?
You must be logged in to reply to this topic.
Your Name (required)
Your Email (required)
Enter this code below: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.
Please leave this field empty.