Version 1 (modified by axill, 10 years ago) (diff)

new page created, added case on how to fine tune you node without donloading a new sketch

Case # 1

Task: you need an ability to tune a few parameters of you arduino/avr radio node without downloading a new sketch to it. For example you need to fine tune your motion sensor

Solution:

  • choose from V_VAR1, V_VAR2, V_VAR3, V_VAR4, V_VAR5 to use for your fine tune parameters;
  • choose from your root or child nodes. You can use all five parameters per each of your root and child device. It is up to you how to design this;
  • program your sketch to fetch variable from vera using one of requestStatus() or getStatus(). The method getStatus() will wait for vera reply and will return text representing needed variable. The method requestStatus() will be a none blocking call but you will have to take care to get reply later by yourself using messageAvailable() and getMessage();
  • do i thirst run of your modified sketch to request parameters. Be prepared that you will receive an empty string because at this time we have just created empty variables at vera side.
  • refresh your vera and go to particular child into Advanced Tab. You should be able to see your new variables named Variable1...Variable5. Variable1 corresponds to V_VAR1 inside your sketch etc.
  • fill free to change empty field on vera side to the value your needed, Save changes.
  • check with you Arduino, it should receive correct data at this point

... more cases to came soon

Attachments