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
3875
June 01, 2016 05:35AM
Re: Arduino UPDATE Mysql
1707
June 01, 2016 10:06AM
1390
June 03, 2016 10:19AM
1355
June 16, 2016 07:05AM
1604
June 16, 2016 06:54AM
1379
June 16, 2016 08:35AM
1308
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.