Need Arduino Code to receive 256 Bytes from Serial Port
$12-30 SGD
Completed
Posted over 7 years ago
$12-30 SGD
Paid on delivery
Using Arduino UNO. I have no issues to receive 32 Bytes. Need to receive 128 Bytes.
void loop()
{
if ([login to view URL]() == 32)
{
int i = 0;
int j = 0;
int d[32]={0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
for( i = 0; i < 32; i++)
{
d[i] = [login to view URL]();
}
for( i = 0; i < 32; i++)
{
if (d[i] == 0x11)//Verify
j++;
}
if (j == 32)//Verify
{
[login to view URL]("Received");
}
}
}
Using Arduino UNO, 256 Bytes sent via C# to Serial Port.