Free Ground Shipping on all orders over $100 (US Only)
login   |   Register

Welcome Forums Tarts for Raspberry Pi Register Multiple Sensors

This topic contains 2 replies, has 3 voices, and was last updated by Errol KOOLMEISTER Errol 2 years, 4 months ago.

  • Author
    Posts
  • #3591
    scott
    scott
    Participant

    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()?

    Thanks

  • #3598
    Eli Redd
    Eli Redd
    Participant

    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.

    • #3951
      Errol KOOLMEISTER
      Errol
      Participant

      Is it possible to get an code example on how this is done?

You must be logged in to reply to this topic.

Support
Contact Us!

Your Name (required)

Your Email (required)

Subject

Your Message

Enter this code below: To use CAPTCHA, you need Really Simple CAPTCHA plugin installed.