Need Arduino Code to receive 256 Bytes from Serial Port

  • 状态 完成的
  • 预算 $12 - $30 SGD
  • 总竞标 2

项目描述

Using Arduino UNO. I have no issues to receive 32 Bytes. Need to receive 128 Bytes.

void loop()

{

if ([url removed, login to view]() == 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] = [url removed, login to view]();

}

for( i = 0; i < 32; i++)

{

if (d[i] == 0x11)//Verify

j++;

}

if (j == 32)//Verify

{

[url removed, login to view]("Received");

}

}

}

Using Arduino UNO, 256 Bytes sent via C# to Serial Port.

获得类似项目的报价
完成的:
要求的技能

想赚钱吗?

  • 设置你的预算和期限
  • 列出你的提案
  • 获得工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online