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. My Sensors Test environments

My Sensors Test environments

Scheduled Pinned Locked Moved Development
1 Posts 1 Posters 839 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.
  • greglG Offline
    greglG Offline
    gregl
    Hero Member
    wrote on last edited by
    #1

    Hey all.

    I had a problem recently where my prod Vera ran out of memory and this results in not being able to save any settings or create new devices as well as the Vera main process crashing and restarting!! I fixed this by cleaning up some unused plugins and devices...many of which were Arduino devices from testing...

    Anyway, as I have two Vera's i realised id better be more carefull and not use the production one for any testing....
    My "test" vera is on UI7 and my "production" is on UI5 - both are equipped with a Ethernet Gateway ( ver 1.4.1)

    I've just posted a multisensor sketch to codebender which has a method i use for setting which mysensors parameters apply to the sketch and to which mysensors network it should operate on. It means i dont need to make changes to the MyConfig file and remember to switch back..a pain when im tweeking a prod sketch...

    Anyway here is the snippet below - i just change the MySensorTESTBED from 0 to 1 :

    #define MySensorTESTBED 0
    
    #if MySensorTESTBED == 1
       #define CLIENT_ID 9  // Sets MYSensors client id
       #define RADIO_CH 96  // Sets MYSensors to use Radio Channel 96
       #define RELAY 4   // Set 4 for mini rboard
       #define TRIGGER	3	// On Mini Rboard there is D3 (Interupt 1) available on the RX Module pins
     #endif
    
    #if MySensorTESTBED == 0
       #define CLIENT_ID AUTO  // Sets MYSensors client id
       #define RADIO_CH 76  // Sets MYSensors to use Radio Channel
       #define RELAY 4   // Set 4 for mini rboard
       #define TRIGGER	3	// On Mini Rboard there is D3 (Interupt 1) available on the RX Module pins
    #endif
    

    these then get used in setup..

    gw.begin(incomingMessage, CLIENT_ID , false,AUTO,RF24_PA_MAX,RADIO_CH,RF24_250KBPS);
    

    I can also use the same to control which Pins are used or whatever other variables i need... very good for sleep variables!

    Hope this is of interest...

    Full sketch here:
    https://codebender.cc/sketch:61919

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


    16

    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