Re: Arduino UPDATE Mysql
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;");
}
Subject
Views
Written By
Posted
4497
June 01, 2016 05:35AM
Re: Arduino UPDATE Mysql
1934
June 01, 2016 10:06AM
1596
June 03, 2016 10:19AM
1576
June 16, 2016 07:05AM
1846
June 16, 2016 06:54AM
1608
June 16, 2016 08:35AM
1536
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.