forked from xuos/xiuos
xiuos\APP_Framework\Framework\connection\bluetooth:
1.add rt-thread msh
This commit is contained in:
parent
b5783ca4c5
commit
48199d551c
|
@ -82,7 +82,7 @@ int AdapterBlueToothInit(void)
|
|||
int AdapterBlueToothTest(void)
|
||||
{
|
||||
const char *bluetooth_msg = "BT Adapter Test";
|
||||
char bluetooth_recv_msg[128];
|
||||
char bluetooth_recv_msg[128]={0};
|
||||
int len;
|
||||
int baud_rate = BAUD_RATE_9600;
|
||||
|
||||
|
@ -100,6 +100,7 @@ int AdapterBlueToothTest(void)
|
|||
while (1) {
|
||||
AdapterDeviceRecv(adapter, bluetooth_recv_msg, 8);
|
||||
printf("bluetooth_recv_msg %s\n", bluetooth_recv_msg);
|
||||
|
||||
AdapterDeviceSend(adapter, bluetooth_msg, len);
|
||||
printf("send %s after recv\n", bluetooth_msg);
|
||||
PrivTaskDelay(1000);
|
||||
|
|
Loading…
Reference in New Issue