MySQL Forums :: Connector/Arduino :: Arduino UPDATE Mysql


Advanced Search

Re: Arduino UPDATE Mysql
Posted by: Darci CIdade ()
Date: June 01, 2016 10:06AM

I made this form but it did not work:

char query_4[80];
int port_relay4 = 9;

void loop() {

int val = digitalRead (port_relay4);

if (val == LOW)

sprintf(query_4, "update minhacas_a.usuario1 SET posicao = 0 where id_rele = 1;");
}
else
{

sprintf(query_4, "update minhacas_a.usuario1 SET posicao = 1 where id_rele = 1;");
}

Options: ReplyQuote


Subject Views Written By Posted
Arduino UPDATE Mysql 691 Darci CIdade 06/01/2016 05:35AM
Re: Arduino UPDATE Mysql 369 Darci CIdade 06/01/2016 10:06AM
Re: Arduino UPDATE Mysql 324 Darci CIdade 06/03/2016 10:19AM
Re: Arduino UPDATE Mysql 306 Chuck Bell 06/16/2016 07:05AM
Re: Arduino UPDATE Mysql 379 Chuck Bell 06/16/2016 06:54AM
Re: Arduino UPDATE Mysql 308 Darci CIdade 06/16/2016 08:35AM
Re: Arduino UPDATE Mysql 338 Chuck Bell 06/17/2016 07:07AM


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.