MySQL Forums :: Connector/Arduino :: loop speed

Advanced Search

Re: loop speed
Posted by: Chuck Bell ()
Date: December 01, 2015 01:11PM

The Arduino is not the fastest device in the world nor is the Ethernet shield spritely. I think you're doing well to get the loop to execute successfully once per second.

If the table you are using is a lookup table and thus data does not change frequently, you should move the query to startup() and store the values in memory.

OTOH, you should write your code to refresh the data as often as you expect it to change. In other words, how often does the value in the table differ? Is it really once per second?

Options: ReplyQuote

Subject Views Written By Posted
loop speed 984 Silvio Pedretti 11/01/2015 09:49AM
Re: loop speed 479 Chuck Bell 12/01/2015 01:11PM
Re: loop speed 420 Silvio Pedretti 12/14/2015 02:33PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.