Commit 5798a441 authored by 王金亮's avatar 王金亮

feat:新增在ID12下,发送蓝牙名称

parent 6ed34a29
...@@ -315,10 +315,15 @@ void Uart_Send_Id10_Pro(void ) ...@@ -315,10 +315,15 @@ void Uart_Send_Id10_Pro(void )
void Uart_Send_Id12_Pro(void ) void Uart_Send_Id12_Pro(void )
{ {
uint8_t ID12[1] = {0}; uint8_t ID12[15] = {0};
ID12[0] |= (uint8_t)(BT_User.BT_Sts << 4); ID12[0] |= (uint8_t)(BT_User.BT_Sts << 4);
ID12[0] |= Ble_User.Ble_Sts; ID12[0] |= Ble_User.Ble_Sts;
Protocol_Send(0x12, ID12, 1); unsigned int i = 0;
for(i = 0;i < 14;i++)
{
ID12[ i + 1 ] = BT_Device_Name[ i ];
}
Protocol_Send(0x12, ID12, 15);
} }
void Uart_Send_Id01_Pro(void) void Uart_Send_Id01_Pro(void)
......
...@@ -79,4 +79,5 @@ extern uint8_t BT_Device_Name[14]; ...@@ -79,4 +79,5 @@ extern uint8_t BT_Device_Name[14];
void Get_Mac_Init(void ); void Get_Mac_Init(void );
extern int bsp_Uart_Send_Data(uint8_t * data , unsigned int len); extern int bsp_Uart_Send_Data(uint8_t * data , unsigned int len);
extern uint8_t BT_Device_Name[14];
#endif #endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment