|
发表于 2023-9-5 09:07:55
|
显示全部楼层
- //-------le_server_module.c------//
- static void my_ble_revieve_data(u16 handle, u8 *data, u16 len)
- {
- log_info("write_hdl %02x -recieve(%d):", handle, len);
- for (int i = 0; i < len; i++)
- {
- printf("%02X ", data[i]);
- }
- printf("\n");
- user_uart1_write((char*)data, (u32)len);//接收到的数据uart发出去
- printf(">>>>>change data ok!!!!!<<<<<\n");
- }
- //响应数据
- void my_ble_send_data(u8 *data,u16 len)
- {
- app_send_user_data(ATT_CHARACTERISTIC_ae02_01_VALUE_HANDLE, data, len);
- //把数据响应出去
- }
- //cyc+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
复制代码 |
|