Daniel Berenguer
unread,May 20, 2012, 6:06:07 AM5/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pans...@googlegroups.com
Hi Iulian, your processor is fine, just don't overclock it ;-)
Updating internal values without transmitting statuses is perfectly possible:
1. Read your sensors periodically, using a timer or directly from
loop(). Update your registers from your own "readMySensor" function as
you usually do from the updater function.
2. When declaring your register, set the updater function to NULL
since you no longer need to manipulate values whenever
getRegister(REGI_SENSOR)->getData() is called:
REGISTER regSensor(dtSensor, sizeof(dtSensor), NULL, NULL);
3. From your custom "readMySensor" function, you can transmit a SWAP
status simply by calling getRegister(REGI_SENSOR)->getData()
As a side note, SWAPmaker will be released next week. I'm aware of the
difficulties of understanding how to code new sketches so I decided to
develop a wizard which does most of the work, including the creation
of the necessary xml files.