Enlarge BLE transmission buffer to support split packets
This commit is contained in:
		
							parent
							
								
									8207c62d73
								
							
						
					
					
						commit
						58fdc62722
					
				@ -29,7 +29,8 @@
 | 
				
			|||||||
#elif MCU_VARIANT == MCU_NRF52
 | 
					#elif MCU_VARIANT == MCU_NRF52
 | 
				
			||||||
  #include <bluefruit.h>
 | 
					  #include <bluefruit.h>
 | 
				
			||||||
  #include <math.h>
 | 
					  #include <math.h>
 | 
				
			||||||
  BLEUart SerialBT;
 | 
					  #define BLE_MTU 512+3
 | 
				
			||||||
 | 
					  BLEUart SerialBT(BLE_MTU);
 | 
				
			||||||
  BLEDis  bledis;
 | 
					  BLEDis  bledis;
 | 
				
			||||||
  BLEBas  blebas;
 | 
					  BLEBas  blebas;
 | 
				
			||||||
  bool SerialBT_init = false;
 | 
					  bool SerialBT_init = false;
 | 
				
			||||||
@ -436,7 +437,7 @@ char bt_devname[11];
 | 
				
			|||||||
    cable_state = CABLE_STATE_DISCONNECTED;
 | 
					    cable_state = CABLE_STATE_DISCONNECTED;
 | 
				
			||||||
    BLEConnection* conn = Bluefruit.Connection(conn_handle);
 | 
					    BLEConnection* conn = Bluefruit.Connection(conn_handle);
 | 
				
			||||||
    conn->requestPHY(BLE_GAP_PHY_2MBPS);
 | 
					    conn->requestPHY(BLE_GAP_PHY_2MBPS);
 | 
				
			||||||
    conn->requestMtuExchange(512+3);
 | 
					    conn->requestMtuExchange(BLE_MTU);
 | 
				
			||||||
    conn->requestDataLengthUpdate();
 | 
					    conn->requestDataLengthUpdate();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user