Added function to retrieve the amount of data received from an BLECharacteristic (#5339)
This commit is contained in:
		
							parent
							
								
									16f4b0f5ba
								
							
						
					
					
						commit
						0aafa05e8f
					
				| @ -187,6 +187,13 @@ uint8_t* BLECharacteristic::getData() { | ||||
| 	return m_value.getData(); | ||||
| } // getData
 | ||||
| 
 | ||||
| /**
 | ||||
|  * @brief Retrieve the current length of the data of the characteristic. | ||||
|  * @return Amount of databytes of the characteristic. | ||||
|  */ | ||||
| uint8_t BLECharacteristic::getLength() { | ||||
| 	return m_value.getLength(); | ||||
| } // getLength
 | ||||
| 
 | ||||
| /**
 | ||||
|  * Handle a GATT server event. | ||||
|  | ||||
| @ -62,6 +62,7 @@ public: | ||||
| 	BLEUUID        getUUID(); | ||||
| 	std::string    getValue(); | ||||
| 	uint8_t*       getData(); | ||||
| 	uint8_t        getLength(); | ||||
| 
 | ||||
| 	void indicate(); | ||||
| 	void notify(bool is_notification = true); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user