65,184
社区成员




unsigned char sendBuf[10];
unsigned char *PtestChar=sendBuf;
sendBuf[0] = 0x81;
sendBuf[1] = 0x0A;
sendBuf[2] = 0x02;
sendBuf[3] = 0x16;
sendBuf[4] = 0x81;
sendBuf[5] = 0x0A;
sendBuf[6] = 0x00;
sendBuf[7] = 0x16;
while(*PtestChar!=NULL)
{
printf("%d\n",*PtestChar);
PtestChar++;
}
unsigned char sendBuf[10];
unsigned char *PtestChar=sendBuf;
sendBuf[0] = 0x81;
sendBuf[1] = 0x0A;
sendBuf[2] = 0x02;
sendBuf[3] = 0x16;
sendBuf[4] = 0x81;
sendBuf[5] = 0x0A;
sendBuf[6] = 0x00;
sendBuf[7] = 0x16;
for(i=0;i<8;++i)
{
printf("%d\n",*PtestChar);
PtestChar++;
}