shell
This commit is contained in:
		
							parent
							
								
									32ae69dd0f
								
							
						
					
					
						commit
						9f6f4e08a2
					
				@ -40,6 +40,7 @@ def hello():
 | 
			
		||||
    result = subprocess.run(
 | 
			
		||||
        [f"gatttool -i hci0 -b b2:3b:03:00:14:d6 --char-write-req -a 0x0009 -n {str}"],
 | 
			
		||||
        stdout=subprocess.PIPE,
 | 
			
		||||
        shell=True,
 | 
			
		||||
    ).stdout.decode("utf-8")
 | 
			
		||||
    if result != "Characteristic value was written successfully":
 | 
			
		||||
        raise Exception("Didn't work")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user