MySQL Forums
Forum List  »  Connector/Arduino

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

Written By
November 01, 2015 09:49AM
Re: loop speed
December 01, 2015 01:11PM
December 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.