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
4603
June 01, 2016 05:35AM
Re: Arduino UPDATE Mysql
1979
June 01, 2016 10:06AM
1645
June 03, 2016 10:19AM
1623
June 16, 2016 07:05AM
1894
June 16, 2016 06:54AM
1661
June 16, 2016 08:35AM
1582
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.