MySQL Forums
Forum List  »  Connector/Arduino

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
826
June 01, 2016 05:35AM
Re: Arduino UPDATE Mysql
423
June 01, 2016 10:06AM
367
June 03, 2016 10:19AM
339
June 16, 2016 07:05AM
419
June 16, 2016 06:54AM
344
June 16, 2016 08:35AM
369
June 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.